Voila templates for nbgallery project
Project description
voila-nbgallery
Experimental work in progress - subject to change!
This project contains Voila templates to use in offline scenarios and/or in conjunction with nbgallery. These templates use jinja template inheritance to build on top of upstream templates maintained by the Voila project.
Templates in this package
- offline-lab - Voila's default template, patched to work offline (nothing nbgallery-specific)
- offline-gridstack - voila-gridstack template, patched to work offline (nothing nbgallery-specific)
- Qgrid and font-awesome patches as above
- Local copy of gridstack javascript and stylesheet (voila-gridstack#26)
- nbgallery-material - Prototype nbgallery template based on voila-material
- Qgrid and font-awesome patches as above
- Workaround for javascript widget error (voila-material#22)
- Displays nbgallery metadata if present in the notebook
- Note: prototype only; nbgallery doesn't currently populate all the fields used by the template.
- Sets the nbgallery notebook and revision id as environment variables in the kernel - this can be used for provenance of external actions taken by the notebook
- Note: this only works if Voila is running as a server extention; in standalone mode, execute requests are blocked.
See the notebooks directory for some examples.
Installation
If you plan to use only the offline-lab or nbgallery-material template:
pip install voila-nbgallery
We've listed voila-gridstack as an optional dependency because it includes UI extensions for both Jupyter Lab and Jupyter Notebook, and you may not want those if you're not using the gridstack template. If you plan to use the offline-gridstack template, then install with the optional dependency:
pip install voila-nbgallery[gridstack]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for voila_nbgallery-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea2db49eee4fd2ab4c17e52b3b5fd55170759c95865ab544b5b0e8ff22a09b3 |
|
MD5 | c8f4f38cc72f7875f35561eec67d394d |
|
BLAKE2b-256 | 129bb655030fd4680fc489f531e71eb4e785c78b71e3bfc79d8cd3ac97dccbe8 |