Ask Your Question
2

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

asked 2020-08-13 20:45:18 +0200

andriam gravatar image

updated 2020-08-14 20:10:21 +0200

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-14 02:23:40 +0200

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 11:21:37 +0200 )edit

Nice. Is there a similar option for SageCell?

mwageringel gravatar imagemwageringel ( 2020-08-14 12:39:43 +0200 )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 20:45:18 +0200

Seen: 74 times

Last updated: Aug 14 '20