Files
trade-t1/demo-notebook.ipynb

5.2 KiB

Trade T1 Notebook Smoke Test

This notebook checks Jupyter rendering in Gitea.

Inline math: $e^{i\\pi} + 1 = 0$.

Display math:

$$ \\sigma(x) = \\frac{1}{1 + e^{-x}} $$

In [1]:
import numpy as np\nimport matplotlib.pyplot as plt\n\nx = np.linspace(0, 2 * np.pi, 200)\ny = np.sin(x)\n\nfig, ax = plt.subplots(figsize=(6, 3))\nax.plot(x, y, color='tab:blue', linewidth=2, label='sin(x)')\nax.scatter([0, np.pi, 2 * np.pi], [0, 0, 0], color='tab:red', zorder=3)\nax.set_title('matplotlib sine wave demo')\nax.set_xlabel('x')\nax.set_ylabel('y')\nax.grid(True, alpha=0.25)\nax.legend()\nprint(f'peak amplitude: {y.max():.4f}')\nplt.show()\n
peak amplitude: 1.0000\n
No description has been provided for this image

Rendered SVG output above is embedded in the notebook, so Gitea can display it without executing Python on the server.