Comments (10)
Cannot reproduce. Do you have more complete steps to reproduce?
Btw the code that moves the cursor is
for w in self.vim.windows:
if w.buffer == self.buf:
w.cursor = [len(self.buf), int(1e9)]
which should only move the cursor in the jupyter buffer. But this reminds me this should be made dynamically configurable, which should be easy now that we have neovim/neovim#3603
from nvim-ipy.
Steps to reproduce:
- start
nvim
with some python file :IPython
- Focus python file again
C+w o
so that the python file is the only visible one- move cursor somewhere
- In a new shell:
jupyter console --existing
- In that shell, enter some python code, e.g.
2+3
Cursor in vim moves to first line in the python file
NVIM v0.1.1-165-g074d3dc (compiled Jan 4 2016 11:10:24)
from nvim-ipy.
I cannot reproduce on bf7bc4dcf (master 18 hours ago). It could possible that the startup is racy with some autocommands or something. Could you try with minimal nvimrc with only this plugin?
from nvim-ipy.
This also happens with this minimal config:
https://github.com/languitar/config-vim/tree/nvim-ipy-bug
The important part seems to be that this only happens if the ipython buffer is not shown in a window.
from nvim-ipy.
hmm weird, and always moves to the first line, even if you do it many times? Just for debugging try add return
as the first line in append_outbuf
in rplugin/python/nvim_ipy.py
and see if still happens.
from nvim-ipy.
Here is a badly made screencast showing what I experience. It seems this only happens the first time the ipython buffers gets to the background.
from nvim-ipy.
Did you try with disabled append_outbuf
as I suggested above?
from nvim-ipy.
Without that the cursor does not jump.
from nvim-ipy.
If you just remove this part
for w in self.vim.windows:
if w.buffer == self.buf:
w.cursor = [len(self.buf), int(1e9)]
does it still happen?
from nvim-ipy.
With these three lines removed the issue still exists.
from nvim-ipy.
Related Issues (20)
- Plotting error. Matplotlib using non-gui backend HOT 1
- What do you use for output? HOT 1
- E117: Unknown function: IPyConnect HOT 1
- is display_svg possible? HOT 1
- Mapping happens anyway, causing collisions while mapping to F5 HOT 3
- autoloading functions HOT 3
- Cursor jumps to the bottom line HOT 3
- no request handler registered after installing with vim-plug HOT 2
- Better interface to IPyRun
- IPython --existing doesn't forget previous invocation
- Integration with vim-airline
- run all cells up to the current cell?
- CWD for jupyter is not correctly set in the kernel?
- plugin not working with python 3 kernel - problem with jupyter-client and channels HOT 2
- E117: Unknown function: IPyConnect HOT 2
- How to connect to virtualenv? HOT 1
- Nothing happend after connect to jupyter. HOT 1
- Cannot run code after :IPython command.
- jupyter_core has changed
- How to make nvim-ipy send lines to Qt Console?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-ipy.