Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

output multiple LaTex equations in one cell in Google Colab

# Put this with your import statements
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = 'all'

# ----------------------- Example -------------------------
from sympy import *
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = 'all'

f = exp(x**2);#f
df = diff(f,x);#df

# ------------------------- Output --------------------------
f
df
Source by www.roelpeters.be #
 
PREVIOUS NEXT
Tagged: #output #multiple #LaTex #equations #cell #Google #Colab
ADD COMMENT
Topic
Name
1+4 =