How to embed Jupyter Notebook code into your Medium article

AI/Data Science Digest
1 min readMay 24, 2020

Have your Jupyter notebook code ready:

df.ipynb

Open github.com and go to “My Gists”:

Drop Down Menu to Select “Your gists”

Click on “+” at the top right corner to create a new gist:

New gist

Drag and drop your code.ipynb into the text box:

Dragging and Dropping the code.ipynb file

Now you are all set. Either click “Create Secret gist” or “Craete public gist” depending on your need.

Then copy and paste the link and you will see the code in Medium.

--

--

AI/Data Science Digest

One Digest At a Time. I value your time! #datascience #AI #GenAI #LLMs #dataanalyst #datascientist #probability #statistics #ML #savetime #digest