Skip to content
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

Usage with any notebook, without .sync.ipynb extension #32

Open
koalp opened this issue Jan 5, 2022 · 3 comments
Open

Usage with any notebook, without .sync.ipynb extension #32

koalp opened this issue Jan 5, 2022 · 3 comments

Comments

@koalp
Copy link

koalp commented Jan 5, 2022

Currently, it seems that only .sync.ipynb can be synced. Would it be possible to use the sync extension for any notebook ?

My usecase is the following : I want to open and update notebooks shared in repositories without .sync.py extension.
Curently, I have to copy those notebooks to add the sync, open them, edit them, and then copy them back to diff or/and commit them. Using a symlink may work though.

Is there a reason to require a specific extension ?

edit: duplicate of #12 , but it have been closed by its author without explanation

@brett-castellanos
Copy link

I'd just like to second that this would be very useful.

@ezyang
Copy link

ezyang commented Mar 14, 2022

Third-ing this!

@ezyang
Copy link

ezyang commented Mar 14, 2022

I hacked this up manually with the following changes:

  1. Install this fork using the development instructions: https://github.com/ezyang/jupyter_ascending/tree/janky-no-sync
  2. Update the Jupyter ascending match pattern to match whatever file names you want to sync, e.g., let jupyter_ascending_match_pattern="example.py" (or do the equivalent for your favorite editor integration)
  3. Profit

It is probably not going to be so easy to "properly" do this, as without the .sync.py extension there is no way to easily tell if a Python file ought to be synced to a notebook or not, and that makes the editor logic a bit more complicated. I also noticed that there is no way to get local preferences to the JS notebook extension either, so that would also have to be worked out. Well, at least it works for me :>

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

No branches or pull requests

3 participants