jupyter-server/jupyter-scheduler

Hide input code from output files created through Scheduler

jesssssssssssssssssss opened this issue · 1 comments

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

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! 🎉