Thanks to Thomas, here is the solution I was looking for:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Thanks to Thomas, here is the solution I was looking for:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"