Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide input code from output files created through Scheduler #430

Open
jesssssssssssssssssss opened this issue Sep 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jesssssssssssssssssss
Copy link

jesssssssssssssssssss commented Sep 7, 2023

Problem

When scheduling a job to run my notebook, there is no option to customize the conversion to HTML to hide input cells upon conversion (at least not that I am aware of). In Jupyter Notebook, I installed a package called "hide_code" which allows me to choose which cells I want to be hidden such that these selected cells are hidden/removed from the output file after downloading the notebook as "Hide Code HTML". I installed a similar extension for JupyterLab called "jupyterlab-hide-code" which allows me to hide code cells when viewing the notebook in JupyterLab, but when I use Scheduler to schedule a job, I get the error "Unexpected error occurred during creation of job". I just want to be able to either hide all input cells or at least have the option to hide selected cells from the generated output files.

Proposed Solution

Some suggestions:

  • Add an option to exclude input/code cells (or cells that have been tagged/selected/etc) from generated HTML file
  • Integrate compatibility with pre-existing hide code packages/extensions such as "jupyterlab-hide-code"
  • Assuming that nbconvert is used to convert notebooks to HTML, allow custom flags to be added like "--no-input" or "--TemplateExporter.exclude_input=True"

Additional context

Here's how the "hide-code" extension works in Jupyter Notebook, I'd like a similar option to be available in Jupyter Scheduler:

image
image
image

@jesssssssssssssssssss jesssssssssssssssssss added the enhancement New feature or request label Sep 7, 2023
@welcome
Copy link

welcome bot commented Sep 7, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant