jupyter-scheduler icon indicating copy to clipboard operation
jupyter-scheduler copied to clipboard

Target jupyter book builds for scheduler output format

Open choldgraf opened this issue 2 years ago • 1 comments

Problem

When using notebooks to generate reports, it is common to use HTML as a target output in order to share them with others. The current jupyter scheduler supports HTML outputs at a basic level (I think via nbconvert?). Many people want a more flexible and feature-rich way to combine their narrative content with their computational outputs, or they want a way to cross-link multiple notebooks that are executed as part of a report.

Proposed Solution

Jupyter Book is a build system that could generate HTML for reports that includes the power of myst markdown, the ability to insert cell outputs into notebooks text, and the ability to create much more complex outputs via sphinx extensions.

I think it could be interesting to explore how this scheduling extension could automatically build HTML via jupyter Book. This might be via executing first and then passing the executed notebooks to the scheduler, or potentially by using jupyter-cache directly from within the job as part of a jupyter book build process.

Additional context

For two examples of the kind of thing I'm talking about, here are two websites that I auto-generate via GitHub Workflows and a jupyter book build:

  • the 2i2c financial transparency page: https://2i2c.org/kpis/finances.html
  • A little personal dashboard I use to track activity across many jupyter repositories: https://chrisholdgraf.com/jupyter-activity-snapshot/executablebooks.html

Another option might be for jupyter book to have its own jupyterlab extension and API to trigger jupyter book builds via jupyterlab.

choldgraf avatar Dec 25 '22 11:12 choldgraf

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
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! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Dec 25 '22 11:12 welcome[bot]