Skip to main content

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

Apache 2.0 License.

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)

Source distribution for snippets_menu_magic 0.2.2
File Size Uploaded
snippets_menu_magic-0.2.2.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snippets_menu_magic 0.2.2
File Interpreter ABI Platform
snippets_menu_magic-0.2.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 46.0 kB

Release files / snippets_menu_magic-0.2.2.tar.gz

Download URL snippets_menu_magic-0.2.2.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
23c1a18d407c16ba787c9ddc675a0dd5fc72a465f34c74c541161fc5cab28a07
BLAKE2b-256 checksum
How to use checksums
8944441bf9a7b3f23d22f5a448c2e25ee38739b1d6c35f16ed2a3f586052f2e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.18.4

Release files / snippets_menu_magic-0.2.2-py2.py3-none-any.whl

Download URL snippets_menu_magic-0.2.2-py2.py3-none-any.whl
Size 31.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
61771f87a99aff32b80bc48ec7e5d7118c20de3505cc1efdea624527ae859447
BLAKE2b-256 checksum
How to use checksums
6e189d4ad0e0003fac11c4ccc1f17dfc41b105df776ef59bdec7da76bf9cc821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.18.4

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page