Is there any way to create gist directly from Jupyter notebook?
This would be really handy as it would allow load gist and load it's url directly to nbwiever without leading opening terminal or IDE.
The Jupyter Notebook has an option to export the notebook to many formats. It can be accessed by clicking File -> Download as -> PDF via LaTeX (or PDF via HTML - not visible in the screenshot).
It's a library you can pip install on your computer or wherever your Notebook is running. It works for any Python process - this happens to be a Jupyter Notebook, but it could be an ordinary Python script, a Flask app, even the Python REPL!
Actually, you can just drag and drop the Jupyter notebook (or Jupyterlab) file (.ipynb) into the 'code space' on the Gist site. So,
Go to https://gist.github.com/YOUR-GITHUB-USERNAME/
Click 'New Gist' on the upper right corner
Open the folder in a Finder/Explorer window on your local computer
Drag the file into the text box (the 'code space'). This should fill the space with JSON looking text for the framework of the notebook content.
Copy/Paste the full file name (e.g., mynotebook.ipynb) into the filename box, and give a description above.
Create the Gist!
Check out https://github.com/mozilla/jupyter-notebook-gist which does exactly what you want. The docs are good on how to install it but aren't specific on exactly how to use it.
However, once you install it you see that it adds this menu, which you just click:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With