Ask Your Question

In Sage Notebook, does sage compile all programs in a cell ?

asked 2020-08-13 13:45:18 -0600

andriam gravatar image

updated 2020-08-14 13:10:21 -0600

Sometimes, in Sagenotebook, when I put many programs in the same cell, for example, the definition of a class, methods within this class and functions , it seems that Sage compiles the class defintions and methods, but ignores the functions.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-08-13 19:23:40 -0600

slelievre gravatar image

If your question is

then one solution is

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
edit flag offensive delete link more


This should be mentioned in the documentation...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2020-08-14 04:21:37 -0600 )edit

Nice. Is there a similar option for SageCell?

mwageringel gravatar imagemwageringel ( 2020-08-14 05:39:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-08-13 13:45:18 -0600

Seen: 70 times

Last updated: Aug 14 '20