-
Notifications
You must be signed in to change notification settings - Fork 392
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
Jupytext's CM uses parent CM's get and save methods to read text files #634
Conversation
…ribute '_notebook_model'
when no local configuration file is found
Codecov Report
@@ Coverage Diff @@
## master #634 +/- ##
=======================================
Coverage 99.18% 99.18%
=======================================
Files 94 94
Lines 9307 9359 +52
=======================================
+ Hits 9231 9283 +52
Misses 76 76
Continue to review full report at Codecov.
|
With this version I see a warning: |
@mwouts I'll take a look |
Thank you @telamonian , well sure it is a great idea if you want to have a look at this. With this PR the contents manager will be much cleaner - the implementation in Jupytext <= 1.6.0 works well in practice but is a bit hacky! The tests on this PR pass but as mentioned above the contents manager does not work in the real world. I am a bit surprised that the tests don't catch this... I'll see tonight if I can reproduce the problem in the test framework, and report here. |
@mwouts I tracked the problem down and fixed it. It actually seems like jupyter-fs and jupytext are working together well now. All the details are at #635. I'm trying to put together some tutorials for how to debug Jupyter-related code. So as an experiment/rough draft I filmed myself working on this bug and uploaded it to youtube.
If you have a sec, check it out |
Great job!!!! Is there any place we can start a wiki to talk about debugging and testing techniques? The tools that I use are Firefox developer and KernelSpy, and I find that a lot of bugs can be tracked down by just running these two programs and seeing where you have error messages, or weird behaviour. Also, I have some hints as to guessing where the bugs often are. |
- following the pattern from `FileContentsManager.save` in the `notebook` package
a63f59d
to
5a21182
Compare
Hi Max, just wanted to thank you for spending time on this project. I've watched the two videos, they are very interesting! Nice way to spend time together 😄 A few quick comments:
Looking forwards to listening to your talk at the next JupyterCon 👋 |
With this PR we stop using
mock
to replace thenbformat.reads
andwrites
functions with Jupytext's ones. Instead we use the parent contents manager to load/write the text files and parse them with Jupytext.As a side effect, we don't use any more private methods from the
FileContentsManager
orLargeFileManager
, and Jupytext can work on top of other contents managers like Jupyter-FS.This is a follow-up on #621 and will hopefully close #618