Skip to content

Instantly share code, notes, and snippets.

View bollwyvl's full-sized avatar

Nicholas Bollweg bollwyvl

View GitHub Profile
[project]
name = "foo"
channels = ["conda-forge"]
platforms = ["linux-64"]
[dependencies]
sqlite = "*"
[tasks.preflight]
inputs = ["pixi.toml"]
"""(re-)generate the litestar multi-output recipe based on `pyproject.toml`
Download this locally from the root of the feedstock, assuming `tomli`, `jinja2`, and `packaging`:
python test_recipe.py --update
git commit -m "updated recipe with test_recipe.py"
conda smithy rerender
If not updating, parameter will fail if new `[extra]`s are added, or
dependencies change.
@bollwyvl
bollwyvl / OpenAI API in JupyterLite JS Knerel.ipynb
Last active January 14, 2024 09:27
OpenAI API in JupyterLite
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / rich-input.md
Last active December 18, 2022 20:34
Jupyter Rich Input

Rich Input for Jupyter Cells

Elevator Pitch

Extend the Jupyter Notebook Format to offer an optional input field for all Cell types. This is an object which mirrors rich display outputs, providing data and associated metadata, both dictionaries keyed by MIME types.

Jupyter Clients that create and edit Notebooks MAY create this field, but MUST continue to emit the source field as the most-portable source-of-truth.

"""opinionated re-purposing of ``jsonschema_gentypes``
@see https://github.com/camptocamp/jsonschema-gentypes/issues/134
"""
import sys
from typing import Any, List, Optional, Type, TypeVar
T = TypeVar("T")
@bollwyvl
bollwyvl / README.md
Last active October 28, 2022 16:24
are we 3.11 yet?

Are we 3.11 yet? Binder

This is tracking the progress of launching JupyterLab 3.x on binder against conda-forge's python311 migration.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / README.md
Last active September 9, 2022 16:27
a jupyterlab latex environment