latex cell with nbsphinx_assume_equations
True (default)¶
this notebook has a plotly graph and a cell with latex, also, nbsphinx_assume_equations
is True
in conf.py
[1]:
import numpy as np
x = np.linspace(0, 2*np.pi, 300)
y = np.sin(x**2)
import plotly.graph_objects as go
fig = go.Figure(go.Scatter(
y=y,
x=x,
))
fig.update_layout(
yaxis_title= r"$sin(x^2)$",
xaxis_title= r"$x$",
)
fig.show()
[2]:
%%latex
$latex$
$latex$