Ask Your Question
2

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

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

andriam gravatar image

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

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
3

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

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

Comments

This should be mentioned in the documentation...

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

Nice. Is there a similar option for SageCell?

mwageringel gravatar imagemwageringel ( 2020-08-14 05:39:43 -0500 )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

Stats

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

Seen: 63 times

Last updated: Aug 14