SENCE 2026 Examples¶
Basic libraries¶
In [1]:
Copied!
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
Nice diagrams¶
In [2]:
Copied!
import insel
import insel
In [3]:
Copied!
insel.block('SUM', 1, 2)
insel.block('SUM', 1, 2)
Out[3]:
3.0
In [4]:
Copied!
insel.template('x_times_y.vseit', x=3, y=5)
insel.template('x_times_y.vseit', x=3, y=5)
Out[4]:
15.0
In [ ]:
Copied!
# run with
# streamlit run app.py
import streamlit as st
st.title("Hello from Streamlit!")
x = st.slider("X", 0, 10, 5)
y = st.slider("Y", 0, 10, 5)
result = x * y
st.markdown(f"x * y = **{result}**")
# run with
# streamlit run app.py
import streamlit as st
st.title("Hello from Streamlit!")
x = st.slider("X", 0, 10, 5)
y = st.slider("Y", 0, 10, 5)
result = x * y
st.markdown(f"x * y = **{result}**")
FlappyBird?¶
Marimo?¶
In [ ]:
Copied!