-
Notifications
You must be signed in to change notification settings - Fork 386
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
How to rewrite a project's history with Jupytext #263
Comments
This is a diff on a random commit: |
Even the links work! At least with Jupyter Notebook. Check by yourself on Binder - cf the updated README.md. Getting the links to work in Jupyter Lab may be another challenge. If I open |
So as a git novice, does (Clarifying for myself..) Which means I could:
Wow! Quickly trying on a large legacy course repo, I note it halts with an error trying to parse a presumably malformed notebook:
It's probably be worth trapping for that and perhaps putting a boilerplate |
Well, I probably am just another git novice 😄 . I learnt of the Rewriting the 230 commits of the project was a bit long, it took between 10 minutes (keep
but that will still partially fail for every commit for which an incorrect notebook exists. Also, in case you want to keep the
|
Trying to rewrite all the github entries for a legacy repo, I've just hit another crash out error, even when running with
|
Hello @psychemedia , thanks for reporting this. Can you try adding the Line 410 in 799ea65
unless you think we could afford to intercept any Exception there?
|
Will give it a go... it's a fair way into my history so it may take some time testing it, unless there's a shortcut through the commit tree to the one that's causing the error...? |
No, still there - it's the handles at Only the |
Hello Tony, I won't have time to publish a new release soon, so I suggest that
except Exception as err: to catch all the possible errors,
A sample notebook that produces a similar error is simply |
Yeah, that worked fine; not sure what was wrong before? I thought I'd upgraded to a modded version of the package but perhaps I hadn't... (environments everywhere!) |
How would @jakevdp's PythonDataScienceHandbook history have looked like with Jupytext?
Here is what I have done:
The results are available in this branch.
What I'd like to do next:
jupytext
in the requirements).md
representation (i.e. replacenbformat.read/write
with Jupytext's ones)The text was updated successfully, but these errors were encountered: