xeus-python icon indicating copy to clipboard operation
xeus-python copied to clipboard

Interpreter ignores ast_node_interactivity = "all"

Open chrisjcameron opened this issue 4 years ago • 0 comments

Xeus-python code appears to try to use the ast_node_interactivity values and imports IPython.core.interactiveshell.InteractiveShell but setting the value to "all" does not seem to impact how the outputs are displayed.

I entered the following in the first notebook cell:

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

In the default kernel, this will execute each node in the cell in interactive mode. In XPython I am seeing behavior consistent with ast_node_interactivity = "last", where just the final line/node is executed in interactive mode.

I am not sure if this is expected behavior. Perhaps there is a alternative import or a different ast_node_interactivity variable to change?

chrisjcameron avatar Mar 02 '21 20:03 chrisjcameron