From 90586defc9fc60b77a9129510400d03612fbc4a0 Mon Sep 17 00:00:00 2001 From: angel Date: Sat, 31 Jan 2026 15:19:11 -0600 Subject: [PATCH] Add example.ipynb --- example.ipynb | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 example.ipynb diff --git a/example.ipynb b/example.ipynb new file mode 100644 index 0000000..e6f7dce --- /dev/null +++ b/example.ipynb @@ -0,0 +1,75 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# My First Notebook\n", + "This is a simple Jupyter Notebook to test rendering in Gitea.\n", + "\n", + "You can write **bold**, *italic*, or `inline code` here." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Hello, Gitea!\n" + ] + } + ], + "source": [ + "print(\"Hello, Gitea!\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Math Example\n", + "Here is an inline equation: $E = mc^2$\n", + "And a display equation:\n", + "$$\\int_0^1 x^2 dx$$" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[1, 4, 9, 16, 25]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "numbers = [1, 2, 3, 4, 5]\n", + "[n**2 for n in numbers]" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "name": "python", + "version": "3.11" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}