-
Notifications
You must be signed in to change notification settings - Fork 394
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
Regression in 1.3.1 due to #407 when scripts and notebooks are in a separate folder. #450
Comments
Thanks @lesteve for reporting this. I think you have reported every bit of useful information (👍 👍 ), so I'll soon add a test to reproduce this, and then fix it. |
This should be fixed in version 1.3.5 (available on pip). Thank you @lesteve for reporting this! |
Great thanks a lot for this! I just tested with 1.3.5 and it does fix the issue. |
By the way, we are trying to have a nice workflow where we synchronise python scripts and Jupyter notebooks with Jupytext. Some people prefer to write Python scripts and execute them cell by cell with Visual Studio Code. Some people prefer to write notebooks instead so there is no primary "source of truth". On top of that we are trying to use yapf in order to have short lines because we want to use the notebooks for tutorials (you often need to increase the font and we want the lines to fit on the screen) If you know of some projects who have similar workflows with Jupytext and have some nice scripts or At the moment I started with a horrible |
Hello @lesteve , well I am not aware yet of a project which has solved this sync/reformatting challenge, but I think we'll soon see one - maybe yours? Let me add that
When we find a convincing way to address the sync/correctedness/reformatting issues, I'd be interested in including this (or a link to a blog post) in the documentation. |
I don't know much either about Makefiles and just to be explicit, nobody should use my Makefile because it is horrible and it does not really work! OK if I end up doing something not too hacky, I will let you know. My feeling is that it will be very hacky though, at least the first iteration. |
The directory structure looks like this:
I am running
jupytext
like this:Output:
If I try to change the format to avoid the error then
jupytext --sync
does not seem to create the notebook in the right place. Maybe I was doing something fishy all along in which case I would appreciate advice how to usejupytext
better ...Here is a way to reproduce:
Same thing works fine with jupytext 1.3:
git bisecting points to #407.
The text was updated successfully, but these errors were encountered: