Code Monkey home page Code Monkey logo

Comments (3)

williamjameshandley avatar williamjameshandley commented on August 22, 2024

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.

zhf-0 avatar zhf-0 commented on August 22, 2024
  • The first issue is still the same. A good gif is better than hunders of words
    Peek 2019-12-12 13-13

  • 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
    Peek 2019-12-12 13-15

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.

williamjameshandley avatar williamjameshandley commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.