{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "210616d9-9ddc-4da9-a718-23142f7796d2",
   "metadata": {},
   "source": [
    "# SENCE 2026 Examples"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8c248f5a-cd2f-4b29-9636-e3ad4a3bd0d3",
   "metadata": {},
   "source": [
    "## Basic libraries"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "81d12356-11ac-4606-92b6-3cfe7907bd37",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e94f795c-3aad-4ae5-a07f-8901f76d1e2b",
   "metadata": {},
   "source": [
    "## Nice diagrams\n",
    "\n",
    "https://python-graph-gallery.com/"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ced928ce-13d5-43c5-b9bf-ca5321525429",
   "metadata": {},
   "source": [
    "## insel\n",
    "\n",
    "https://pypi.org/project/insel/\n",
    "```bash\n",
    "pip install insel\n",
    "```"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "cf4a9462-25e8-447b-a624-c0e0d48a282f",
   "metadata": {},
   "outputs": [],
   "source": [
    "import insel"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "40e3c128-14af-4280-b780-2fd750ad1927",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "3.0"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "insel.block('SUM', 1, 2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "b6423559-6e87-4365-814c-a537e6f44a40",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "15.0"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "insel.template('x_times_y.vseit', x=3, y=5)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ac6d1b92-755f-4cc4-b18c-8f4b43230ce6",
   "metadata": {},
   "source": [
    "## Streamlit\n",
    "\n",
    "https://streamlit.io/\n",
    "```bash\n",
    "pip install streamlit\n",
    "```"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fd4e193f-e957-47af-a9d1-4ae581e82482",
   "metadata": {},
   "outputs": [],
   "source": [
    "# run with\n",
    "# streamlit run app.py\n",
    "import streamlit as st\n",
    "\n",
    "st.title(\"Hello from Streamlit!\")\n",
    "x = st.slider(\"X\", 0, 10, 5)\n",
    "y = st.slider(\"Y\", 0, 10, 5)\n",
    "\n",
    "result = x * y\n",
    "\n",
    "st.markdown(f\"x * y = **{result}**\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a8196812-36b5-49e7-b512-98c863110a90",
   "metadata": {},
   "source": [
    "## FlappyBird?\n",
    "\n",
    "https://github.com/EricDuminil/FlapPyBird"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e638a151-c698-4ac7-95c0-ec42b1b1d1b2",
   "metadata": {},
   "source": [
    "## Marimo?\n",
    "\n",
    "https://marimo.io/gallery"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ce72329c-a6ae-489f-b1a8-461f6b810210",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
