jupyter_to_medium icon indicating copy to clipboard operation
jupyter_to_medium copied to clipboard

Single gist

Open kefirbandi opened this issue 2 years ago • 0 comments

Hi,

I really like the jupyter_to_medium package, it helped me a lot to create my post. (https://towardsdatascience.com/creating-a-ui-with-ipywidgets-and-autocalc-2ef8ea4cc6c2?source=friends_link&sk=d0077f21d38df0313c0e727a378af415) However, I found that when I had multiple iterations of the post, it was very tedious to remove the gists from the previous run, as I didn't want them to pollute my gist space.

What I ended up doing is to publish all snippets to the same gist but in multiple files. To the reader it looks the same: all cells appear in different code blocks. But it is easier to maintain, e.g. I can simply delete a previous iteration in one go.

In addition I made two other, minor changes:

1, The URL of the gist is stored in the base directory 2, User can set whether the gist is public (default) or secret. (The latter means it can be viewed, but is not discoverable without the url).

I hope you'll like these additions, let me know if you'd like me to change anything.

This is an example of a draft I created, I hope you are able to access it: https://medium.com/@andras.gefferth/test-notebook-0-11fef353b63f

Andras

kefirbandi avatar Jan 24 '22 04:01 kefirbandi