Skip to content

Commit

Permalink
feat: add a pytorch shortcut (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Sep 24, 2023
1 parent 2e0b3bb commit fc90d3a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,21 @@ podmansh-switch IMAGE:
systemctl --user start podmansh.service
echo "Image now switched to {{IMAGE}}"

# Run pytorch
pytorch:
echo 'Follow the prompts and check the tutorial: https://docs.anaconda.com/free/anaconda/jupyter-notebooks/'
podman pull docker.io/continuumio/miniconda3
podman run -i -t -p 8888:8888 docker.io/continuumio/miniconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir \
/opt/notebooks && /opt/conda/bin/jupyter notebook \
--notebook-dir=/opt/notebooks --ip='*' --port=8888 \
--no-browser --allow-root"

# Run Tensorflow
tensorflow:
echo 'Follow the prompts and check the tutorial: https://www.tensorflow.org/tutorials/quickstart/beginner'
podman pull docker.io/tensorflow/tensorflow:latest
podman run -it -p 8888:8888 docker.io/tensorflow/tensorflow:latest-jupyter # Start Jupyter server

# Install a better on-screen-keyboard and gesture improvements
touch:
pip install --upgrade gnome-extensions-cli
Expand Down

0 comments on commit fc90d3a

Please sign in to comment.