Skip to content

Single gist #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2023
Merged

Single gist #48

merged 3 commits into from
Apr 1, 2023

Conversation

kefirbandi
Copy link
Contributor

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

… will be public (searchable by search engines) or private (accessible by link only).

Also added a method to Publish, which saves the urls of the gists created. This allows for later automatic deletion of the gists from a previous run.
@mjam03
Copy link
Collaborator

mjam03 commented Mar 27, 2023

Hey,

So sorry for not getting back to you on this - I kind of dropped the ball with maintaining this repo.

I've just scanned your PR and it looks great! A much better way of doing things - I completely agree with you that having a single gist with multiple parts is cleaner, simpler and easier to maintain when drafting.

I'll pull it down locally and check it all looks good then get it merged in this week and deployed.

Thanks again,
Mark

@kefirbandi
Copy link
Contributor Author

Thank you.
Meanwhile, actually, I had to make some other changes (like updating the dependency versions) to make it work. Also added wkhtmltoimage as a third option to create images from table besides chrome and matplotlib. I will have a look and create pull requests so that you can decided if you like them, if my time permits.

@mjam03 mjam03 changed the base branch from master to develop April 1, 2023 13:08
@mjam03 mjam03 merged commit 123ec56 into dexplo:develop Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants