wuub / SublimeREPL

SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)
https://github.com/wuub/SublimeREPL
Other
2.14k stars 310 forks source link

Ipython problem #205

Open jimmy0415 opened 11 years ago

jimmy0415 commented 11 years ago

On windows 7 x64: When I use %load in ipython to load a file, which is shown in picture page1

and the results in ipython qtconsole is : page2

So in ipython qtconsole, it has shown the result: 2. But in REPL, no output for run the file t2.py. Could you please tell me how to solve it? Thanks very much!

wuub commented 11 years ago

Interesting.

IPython integration on Windows uses some hacky workarounds (https://github.com/wuub/SublimeREPL/blob/master/config/Python/ipy_repl.py#L43) Maybe it's misbehaving with IPython magics. I'll look into it as soon as possible.

jimmy0415 commented 11 years ago

Thanks very much for very quick response. And I find another problem: for just two lines codes: a=1+1 print, When I input a=1+1 and then press enter, the result in REPL is: In [1]: a=1+1

In [2]: print a

if press ctr+enter, the result is In [4]: a=1+1 print 2

And in qtconsole, when I use shift+enter, the result is In[1]:a=1+1 ....: print a

The difference is : "....:" is added.

Is it possible to show this format in REPL? Thanks very much!

jimmy0415 commented 11 years ago

I'm very sorry to trouble you again. For the following codes: In [11]: a=1+1 b=1+3 print a+b

In [12]: In [13]: 6

You can see a "In [12]:" is shown which is not necessary.