Le 14 janv. 2014 à 00:02, Cristóvão Duarte Sousa a écrit :
> I guess IJulia is suppose to work on the notebook (ipython notebook
> --profile=julia) only.
> If one wants Julia in a console, julia REPL is the way to go.
>
> I say this because the issue has already been around from a long time ago.
There are many issues here,
First is that `ipython console` is not a lot used, so there is only a few bugs
report.
This is mainly due to the fact that of course people use native repl most of
the time.
There is the possibility to bind another key-combinaison to "force new line"
without executing.
Because right now the console process (python) is lexing input at python and is
the one deciding wether
to insert a new line or execute this would only be a temporary workaround
until we add the possibility
to ask the kernel to do lexing and decide wether or not an input is done.
> On Monday, January 13, 2014 10:07:35 PM UTC, Ismael VC wrote:
>
>
> ismaelvc@vm-0:~$ sudo ipython console --profile=julia
> Python 2.7.4 (default, Apr 19 2013, 18:28:01)
> Type "copyright", "credits" or "license" for more information.
> IPython 1.1.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
> IPython profile: julia
> Starting kernel event loops.
>
> In [1]: for i in 1:10
> syntax: incomplete: premature end of input
> at In[22]:2
>
> In [2]:
> KeyboardInterrupt
>
> In [3]: for i in 1:10
>
>
> syntax: incomplete: premature end of input
> at In[3]:2
>
> In [4]: for i = 1:10
> syntax: incomplete: premature end of input
> at In[4]:2
>
> In [5]: for i = 1:10 print(i) end
>
>
> 12345678910
> In [6]: function test()
> syntax: incomplete: premature end of input
> at In[6]:2
>
> In [7]: function test() println("TEST") end
> Out[7]: test (generic function with 1 method)
>
> In [8]: test()
> TEST