EntropyOrg / p5-Devel-IPerl

:microscope::books: Perl5 language kernel for Jupyter <http://jupyter.org/>
http://p3rl.org/Devel::IPerl
93 stars 15 forks source link

Execution semantics from IPython spec #20

Open zmughal opened 9 years ago

zmughal commented 9 years ago

I asked a question about execution semantics of the "single" mode here http://mail.scipy.org/pipermail/ipython-dev/2015-January/015764.html.

You can set the mode if you are using Python by setting the interactivity parameter of run_ast_nodes():

import IPython.core.interactiveshell as intshell
intshell.InteractiveShell.ast_node_interactivity = 'last' # ‘all’, ‘last’, ‘last_expr’ or ‘none’,
zmughal commented 9 years ago

From the mailing list thread, this is not controllable from the front-end and should be left up to the language back-end.