How to embed Python and Jupyter into Medium posts

Filip Stollar
1 min readMay 4, 2021

--

Screenshot of Deepnote — a cloud-hosted Jupyter notebook

If you regularly write posts that include visualizations, you can try to embed them directly to your Medium articles (instead of pasting screenshots). If you are running your Jupyter notebook locally, this might be hard to do because you would need to expose the notebook to the outside world first. You can find a guide to do this by using Binder.

An alternative is to use a cloud-hosted notebook solution that allows you to embed notebook cells. One of these solutions is Deepnote where you are easily able to share or embed cells into Medium articles, Notion pages, or any other tool supporting embeds.

If you want to make sure that the shown data is up-to-date, you can also turn on notebook scheduling that will make sure to re-run your notebook and pull in fresh data at the specific schedule (e.g. every Monday at 9 AM).

An example of a live embedded cell (source notebook)

--

--

Filip Stollar
Filip Stollar

Written by Filip Stollar

Buildling & designing companies, previously led design at Deepnote (YC S19)

No responses yet