-
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
autosaving (autosyncing) jupyter notebook to a python file while saving in vscode? #875
Comments
Hello @FeryET , that is a great question. At the moment there is no documented way to do this, but if you'd like to experiment a bit maybe we can try to do something. This is what I tried this evening:
The above seems to work partially, in the sense that every time I save a |
Dear @mwouts , there is a discussion on vs-code microsoft/vscode-jupyter#1240 about this. Someone also make the extension to make Maybe you can look at that repo and reimplement |
Thank you @yasirroni for the update, that is very helpful. Well I am confident that @DonJayamanne will do a great work on this - If I am correct he was the initial author of the Python extension for VS Code, so I'm sure he is one of the most qualified persons to find out how it should be done for VS Code. @DonJayamanne I see the roadmap for the vscode-jupytext extension, and I see that you are willing to remove the dependency on Python. At some point I also wondered if the conversion routines (and the function that merges a text notebook with a notebook with output) should not be coded in TypeScript (for better interoperability with Jupyter Lab and plugins like |
A brute-force approach to the problem would be to write a little program that watches files that are to be kept in sync and responds to changes in them by running Of course it is nicer if the sync is triggered by the editor, but that doesn't seem possible at the moment. And on the plus side this should work for any editor. Possibly jupytext itself could be told to operate in such a mode. |
I'm wondering if it's possible to sync a Jupyter notebook with a python script whenever a save event is happening for that file in vscode? I know that there are such options in JupyterLab and Jupyter Notebook, but I could not find such options in VS Code Jupyter renderer.
The text was updated successfully, but these errors were encountered: