Comments (3)
Hi @zhf-0. Thanks for the positive feedback. I certainly make a lot of use of this plugin in my day-to-day research.
I use python 3.6, not python 2.7, so I don't install ipython2.7, but the plugin try to open ipython2.7 by default. Actually this is not a problem, I can avoid this by modify the source code easily. The issue is when you type Iipython and you don't install ipython2.7, the plugin will freeze your whole vim program! You have to kill the progress!
I think PR #18 may fix this issue. Could you confirm that you get more sensible behaviour if you check out that branch
This issue come along with the first one. Since I don't have ipython2.7, I want to open the console by typing terminal ipython3, then send some commands to the console using C-s. But the plugin can't recognize this console and open a new python2.7 console again.
This would be quite a large change, since vimteractive adds a fair amount of additional functionality such as tracking 'vimteractive buffers'. In theory I think what you desire is possible, but it might be worth discussing with other users. Could you open this as a separate issue?
The indent issue. In normal mode, the plugin can't send one line which is inside a function or for loop to the console. The error message is unexpected indent.
I'm a little surprised by this. Could you send a MWE code + commands for what you do to reproduce this behaviour?
from vimteractive.
-
The first issue is still the same. A good gif is better than hunders of words
-
I will open a separate issue later
-
Sometimes you have to debug your codes in the for-loop step by step where indent is a problem in
python
console
In fact, I combined some vim scripts and modified them to create a new "plugin" that satisfied my current needs, which is in my repository vim-interact-terminal. I found out the behavior of indent is quite different between python
console and ipython
console.
from vimteractive.
Those gifs are great -- very useful!
Sometimes you have to debug your codes in the for-loop step by step where indent is a problem in python console
This is the expected behaviour. Python is a bit of an odd language with regards to indentation, so in the general framework of vimteractive (which supports all manner of REPL terminals such as bash, maple and clojure), the indentation issue is very much a special case for python. Using Ipython solves all of these issues, so the official vimteractive advice is to use ipython, rather than just pure python interpreter (which is provided only for special cases).
The first issue is still the same.
Are you sure that this code is using the modified branch? Are you able to put in some additional echom
statements into autoload/vimteractive.vim in the offending function to see where it's freezing?
from vimteractive.
Related Issues (20)
- backspace (in insert mode) frozen after having sent lines to interactive program HOT 1
- Send results back HOT 3
- Possible errors in autoload/vimteractive.vim HOT 8
- Send selected text to Ipython console HOT 1
- neovim compatible? HOT 4
- Vertical split HOT 3
- Buffer name choice causing error. HOT 2
- The plugin can't recognize existed console HOT 1
- No new line on windows HOT 3
- Can't backspace up to previous line in Insert mode HOT 3
- Can't use ctrl-s in visual mode HOT 2
- +terminal HOT 1
- Prevent automatic scroll on switching splits HOT 3
- feature request: wolfram support HOT 3
- Sending cell of code HOT 2
- Interactive plotting broken
- run vimscript commands interactively
- Filetype recognition shell
- Support for multiple terminals at once HOT 21
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 vimteractive.