A Jupyter Notebook extension for adding a GitHub-like "Raw" button to the filetree. Although, @captainsafia made this extension, it would not have been possible without the project's PokeMon sponsor, Marshtop.
- Run
pip install raw-button
to install the extension. - Symlink the extension assets to your Jupyter installation using the following command.
ln -s $(python -c "import os; print(os.path.join(os.path.dirname(__import__('raw-button').__file__), 'amd'))") $(ipython locate)/raw-button
- Create a new folder called
static
inside$(ipython locate)/profile_default
. - Create a new folder inside
static
calledcustom
. - Create a new file inside custom titled
custom.js
. - Place the following inside
custom.js
.
Jupyter.utils.load_extensions("raw-button/raw-button");
And that's it! Run jupyter notebook
at the command line and enjoy your new feature!