-
Notifications
You must be signed in to change notification settings - Fork 13
Could not deploy successfully with static/css/js assets along with ipynb. #47
Comments
How did you install the dashboard bundler extension? cc @nitind |
@UTH, the .ipynb is all you'll get with the "Jupyter Dashboard Server bundle .zip" unless you're using static frontend assets in your notebook like declarative widgets. You can drop a .ipynb into the dashboard server and it'll work assuming it has no external frontend dependencies. (If it does, see: https://github.com/jupyter-incubator/contentmanagement/blob/master/etc/notebooks/associations_demo/associations_demo.ipynb on how to get them bundled into the zip). For Deploy as -> Dashboard on Jupyter Dashboard Server, you need to have a jupyter dashboard server running and you need to configure the environment variable in the README.md here to tell the extension where it resides. The https://github.com/jupyter-incubator/dashboards_setup repository has a bunch of recipes for setting a notebook server + dashboard server in tandem so that this option will work. As for "Local Dashboard", that option is deprecated and will very likely not work anymore with modern versions of ipywidgets. The same goes for the PHP option. The deprecations are documented in the README. |
Thanks @parente |
If you have a specific set of CSS/JS files that you want packaged with every notebook for deployment to the dashboard server, you could:
If you take approach (3), the doc on writing your own bundler is here today: https://github.com/jupyter-incubator/contentmanagement#write-bundlers There is an open PR to make the bundler API a part of notebook proper, but it's waiting for review for notebook 5.0 at the moment: jupyter/notebook#1579 |
Thanks very much @parente |
Hi, I was trying the dashboard test-drive in my local Ubuntu,
and found that if deploy as "Local Dashboard" and "Dashboard on Jupyter Dashboard Server",
it did not work
and when I download the notebook as
Jupyter Dashboard Server bundle (.zip)
it download *.ipynb file only
However, the downloading for PHP Dashboard bundle (.zip) works well with .zip downloaded
and with static/css/js file in it.
Any help is appreciated, :)
The text was updated successfully, but these errors were encountered: