Skip to content

Instantly share code, notes, and snippets.

View kolibril13's full-sized avatar
🐶

Jan-Hendrik Müller kolibril13

🐶
View GitHub Profile
@kolibril13
kolibril13 / blender_notebook.txt
Last active November 11, 2024 18:08
blender notebook setup
# Install Blender from https://www.blender.org/download/
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir blender_python_workshop && cd blender_python_workshop
uv venv --python 3.11
uv pip install jupyterlab blender_notebook
uv run blender_notebook install --blender-exec="/Applications/Blender.app/Contents/MacOS/Blender"
uv run jupyter lab
@kolibril13
kolibril13 / color_picker.py
Created October 10, 2024 11:35
marimo reactflow color picker with uv requirements (run with `uvx marimo edit --sandbox color_picker.py` )
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "ipyreactflow==0.0.7",
# "marimo",
# "matplotlib==3.9.2",
# "numpy==2.1.2",
# ]
# ///
import marimo
@kolibril13
kolibril13 / file_drag.py
Created October 10, 2024 09:19
marimo drag'n'drop
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "marimo",
# "matplotlib==3.9.2",
# "numpy==2.1.2",
# ]
# ///
import marimo
@kolibril13
kolibril13 / datasaurus.ipynb
Created October 9, 2024 21:54
datasaurus - data mean std
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / example_ipydrop_csv.py
Last active October 9, 2024 16:20
ipydrop asset
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "ipydrop==0.0.1",
# "marimo",
# "matplotlib==3.9.2",
# "numpy==2.1.2",
# ]
# ///
import marimo
dataset x y
dino 55.3846 97.1795
dino 51.5385 96.0256
dino 46.1538 94.4872
dino 42.8205 91.4103
dino 40.7692 88.3333
dino 38.7179 84.8718
dino 35.641 79.8718
dino 33.0769 77.5641
dino 28.9744 74.4872
@kolibril13
kolibril13 / flower.py
Created September 18, 2024 11:38
flower in marimo
import marimo
__generated_with = "0.8.15"
app = marimo.App(width="medium")
@app.cell
def __():
import marimo as mo
import polars as pl
@kolibril13
kolibril13 / housing.csv
Created August 23, 2024 19:47
California housing dataset
We can't make this file beautiful and searchable because it's too large.
longitude,latitude,housing_median_age,total_rooms,total_bedrooms,population,households,median_income,median_house_value,ocean_proximity
-122.23,37.88,41.0,880.0,129.0,322.0,126.0,8.3252,452600.0,NEAR BAY
-122.22,37.86,21.0,7099.0,1106.0,2401.0,1138.0,8.3014,358500.0,NEAR BAY
-122.24,37.85,52.0,1467.0,190.0,496.0,177.0,7.2574,352100.0,NEAR BAY
-122.25,37.85,52.0,1274.0,235.0,558.0,219.0,5.6431,341300.0,NEAR BAY
-122.25,37.85,52.0,1627.0,280.0,565.0,259.0,3.8462,342200.0,NEAR BAY
-122.25,37.85,52.0,919.0,213.0,413.0,193.0,4.0368,269700.0,NEAR BAY
-122.25,37.84,52.0,2535.0,489.0,1094.0,514.0,3.6591,299200.0,NEAR BAY
-122.25,37.84,52.0,3104.0,687.0,1157.0,647.0,3.12,241400.0,NEAR BAY
-122.26,37.84,42.0,2555.0,665.0,1206.0,595.0,2.0804,226700.0,NEAR BAY
@kolibril13
kolibril13 / iris_quack.ipynb
Created August 15, 2024 11:15
iris dataset with quack
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / solara.ipynb
Created August 9, 2024 10:36
solara-tldraw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.