notebook の動作確認

notebook の動作確認#

# 共通設定
import plotly.io
import ms37_designs.plotly_templates

plotly.io.renderers.default = "notebook_connected"
ms37_designs.plotly_templates.load_templates()
plotly.io.templates.default = "ms37_white"
import numpy
import plotly.express
x = numpy.linspace(0.0, 2.0, 101)
y = numpy.sin(x)
fig = plotly.express.line(
    x=x,
    y=y,
    labels={"x": "$x$", "y": "$y$"},
    title=r"$\text{Sample plot} \  y = \sin{x}$",
)
fig.show(renderer="notebook_connected")
\[ \exp(i\pi) = -1 \]

数式を文章中に含めてみると \(\sqrt{2} = 1.414213562\) となる。

\[\begin{split} \begin{pmatrix} a & b \\ c & d \end{pmatrix} \end{split}\]

Note

note が使えることをテスト