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

Neovim hangs when inserting text into a synced file #6

Open
aaronmlevy opened this issue Jul 12, 2024 · 3 comments
Open

Neovim hangs when inserting text into a synced file #6

aaronmlevy opened this issue Jul 12, 2024 · 3 comments

Comments

@aaronmlevy
Copy link

aaronmlevy commented Jul 12, 2024

The response on the browser is nearly instant when scrolling in normal mode on neovim. Also, in normal mode, neovim responds nearly instantly.

But when adding text, i.e., in insert mode, neovim hangs. This is true when I use neopyter both in direct mode and in proxy mode.

Perhaps I'm doing something wrong. This plugin would be ideal if I could manage to fix this problem.

@aaronmlevy
Copy link
Author

It looks like the issue occurs when I have .ju.py file that contains content before I open neovim.

If the pattern is supposed to be that you edit one file

file.ju.py,

which syncs with another

file.ipynb,

then I find that neovim hangs.

@aaronmlevy aaronmlevy reopened this Jul 12, 2024
@aaronmlevy
Copy link
Author

I have a couple of questions related to syncing:

1). If I have a file a.py that I would like to sync to b.ipynb, is there a way to do it manually without forcing every other .ju.py file to sync? For context, such a command would constitute a workaround to the above issue. Ideally, though, I would like to be able to open a file a.ju.py with content and have it sync to another file, possibly with different content a.ipynb, without hanging Neovim.

2). Assume a.ju.py is synced with a.ipynb. Sometimes, if I accidentally delete something or modify content in Jupyter Lab, a.ipynb no longer reflects the contents of a.ju.py. Is there a way to refresh the sync without breaking things?

Thank you. This is a very cool package.

@AbaoFromCUG
Copy link
Collaborator

Explaination

In normal status, when you open a a.ju.py file, neopyter try to sync with a.ipynb, If a.ipynb which don't exists, it do nothing.

Some tooltips

  • You can run :Neopyter status to check current sync status, e.g. which local .ju.py associated with which one remote .ipynb
  • You can run :Neopyter sync current to force associate current buffer to current openeed ipynb`, but which status will be losted when last open neovim. And which full sync all content with remote notebook

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

2 participants