Easy way to convert Jupyter Notebook into Gist.
- Required Tools:
-
- Jupyter extension package
-
- Steps:
-
- Install Jupyter extension and configurator
- Commands
- pip install jupyter_contrib_nbextensions
- jupyter contrib nbextension install
- pip install jupyter_nbextensions_configurator
- jupyter nbextensions_configurator enable
-
- Open notebook and there will be a new tab Nbextensions
- Select Gist it and enable it. See step 5 for further configuration.
- Note: somehow I cannot create anonymous gist even though Gist-it allows it. Therefore, would need to create a access token from Github.
- To generate the access token, go to link and click “generateĀ new token”. Provide a description and under scope, tick gist and click Generate token
- Copy the token string. Return to Gist-it parameters selection in Notebook and Copy the token into the GitHub personal access token. Tick Gists default to public and click Enable
- To gist a notebook, click on the Github icon, tick Make the gist public and enter a description, click Gist it!
Further notesĀ
- Most of instructions are reference from post: https://medium.com/deena-does-data-science/jupyter-notebook-extensions-e6b57d004e8e