Snippets Menu Magic
Introduction
SnippetsMenuMagic is an IPython extension that let's you easily create menu directly from the notebook.
The menu elements can be snippets of code, internal/external links, markdown documents etc.
Is meant to be used with Snippet Menu that is part of jupyter contrib nbextensions.
Installation
The package can be installed as follows:
pip install snippets_menu_magic
After installation, the extension may be loaded within an IPython session with :
%load_ext snippets_menu_magic
This extension rely on dpath to traverse the dictionary with xpath syntax. (it should be pulled automatically by pip)
It helps to also enable Snippet Menu extension to later see the results
Quick usage how-to
Add a menu and a sub-menu
%%snip_add usage/how-to
this content will be pasted when the menu is clicked
can be multiple lines too
Add a link
%%snip_add bookmarks nbextensions -link
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
Rename and place it as a top menu
%snip_mv bookmarks/nbextensions top/bookmarks/nbextensions
Search
s=%snip_search "**/*extensions"
Remove it
%snip_rm usage/how-to
Please take a moment to read the Guide or better run the GUIDE notebook locally and play with it
Development
The latest release of the package may be obtained from GitHub.
Author
This software was written and packaged by Eli Spizzichino
License
This software is licensed under the
Metadata
Release files for snippets_menu_magic 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snippets_menu_magic-0.2.2.tar.gz | 14.8 kB | Without provenance | Details for snippets_menu_magic-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snippets_menu_magic-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for snippets_menu_magic-0.2.2-py2.py3-none-any.whl |
Total release size: 46.0 kB
Security for snippets_menu_magic 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.