TLDR: 4 questions in bold below.
I now have a jupyterlite interactive notebook locally, ready for its intended audience (restaurant manager & chef) and am figuring out how to deploy it, so they can just click a link and view it. The aspects I’m working with at the moment are that it needs to:
- be served (as static files) from somewhere
- open my notebook as default
- run all cells on open
- show a loading indicator for many seconds
- show the slider widget & plot first, ideally without scrolling
Analysis so far:
- serving
- shopify munges the js files such that they will not run
- this is private info, so no easy button by putting it on github
- can https://www.drupal.org/project/jupyterlite use the local filesystem where I put my notebook & data?
- would https://www.drupal.org/project/jupyterlite void my farmier warranty?
- open my notebook
- can https://www.drupal.org/project/jupyterlite use a predefined config file on the filesystem? (ideal scenario)
- can https://www.drupal.org/project/jupyterlite make use of the query param interpretation to default to my notebook, ex: /lab/index.html?path=duck_pricing_lite-v07.ipynb ?
- run all cells
- does https://www.drupal.org/project/jupyterlite have a method to run my specified notebook automatically?
- if not, can we use the output of something like voici? Try it online — voici 0.8.0 documentation
ex: voici
- progress indicator
- even at the state of the art(?), the load takes a while; thankfully voici shows the needed spinner
ex: if you clicked the link above, it’s probably still loading… - this wait time is actually a great opportunity to ‘make’ someone read something you need them to know, particularly about the data, methods, ui controls, thesis, the email prose they ignored when clicking the elink, etc.
- even at the state of the art(?), the load takes a while; thankfully voici shows the needed spinner
- widget & plot
- this approach, with “link to data” is great for my purposes
ex: voici
when it finally loads, this looks great; but will/can farmos let this run undisturbed?
- this approach, with “link to data” is great for my purposes
Out of scope:
- read-only is fine for this case, so saving to a server is not needed here; local download works fine, if desired
- my plot is big and needs all the screen space it can get, so no theming/wrapping/iframing/site nav is needed
- version control is not a requirement, even though these are files coming from the filesystem - this is technically content, kinda like a pdf would be (but you know, fancier)
Thanks!