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

Cell Synchronization #29

Open
singledoggy opened this issue Feb 7, 2025 · 1 comment
Open

Cell Synchronization #29

singledoggy opened this issue Feb 7, 2025 · 1 comment

Comments

@singledoggy
Copy link

singledoggy commented Feb 7, 2025

Hi,

I've encountered an issue with the neopyter plugin that seems to be related to its cell synchronization mechanism. It appears that the plugin only synchronizes the current cell to improve speed. However, this leads to a problem when the number of cells in a *.ju.py file changes, as the changes are not always synchronized promptly.

For example, when I adjust or delete cells from the bottom, the synchronization does not reflect the changes immediately. I have to enter the 'i' mode to see the updates. Consider the following scenario:

Initial state:

#  %% 
# something cell1
# %%
# if I delete the above line
# something cell2
# %%

The changes are not synchronized until I enter 'i' mode.
@AbaoFromCUG

@singledoggy
Copy link
Author

After I checked the code, I think we have full sync and partial sync, if we choose to use :Neopyter sync current. we can full sync all the cell. However, I wonder if it's better to check the number of the cell or something to use full sync when it's necessary. At least in my case, the number of the cell might be wrong.

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

1 participant