This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# dependencies = [ | |
# "fastapi", | |
# "uvicorn", | |
# "jinja2", | |
# "python-multipart" | |
# ] | |
# /// | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "anthropic==0.57.1", | |
# "loguru==0.7.3", | |
# "marimo", | |
# "matplotlib==3.10.3", | |
# "numpy==2.3.1", | |
# "pandas==2.3.1", | |
# "scikit-learn==1.7.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "loguru==0.7.3", | |
# "marimo", | |
# "matplotlib==3.10.3", | |
# "numpy==2.3.1", | |
# "pandas==2.3.1", | |
# "scikit-learn==1.7.0", | |
# "scipy==1.16.0", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from https://github.com/ericmjl/dotfiles/blob/master/install_functions.sh | |
function install_anaconda { | |
bash anaconda.sh -b -p $HOME/anaconda | |
rm anaconda.sh | |
export PATH=$HOME/anaconda/bin:$PATH | |
# Install basic data science stack into default environment | |
conda install --yes pandas scipy numpy matplotlib seaborn jupyter ipykernel nodejs |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run --gpus all -i -t jax:latest /bin/bash | |
(base) [docker@e697aef58065 ~]$ ls | |
anaconda cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm | |
(base) [docker@e697aef58065 ~]$ which python | |
~/anaconda/bin/python | |
(base) [docker@e697aef58065 ~]$ conda activate mouse-hmm | |
(mouse-hmm) [docker@e697aef58065 ~]$ python | |
Python 3.7.6 | packaged by conda-forge | (default, Jun 1 2020, 18:57:50) | |
[GCC 7.5.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture | |
def path_graph(): | |
"""Return a path graaph of length three.""" | |
G = nx.path_graph(3, create_using=nx.DiGraph) | |
G.graph["name"] = "path" | |
nx.freeze(G) | |
return G | |
@pytest.fixture |
NewerOlder