Created
August 23, 2023 17:12
-
-
Save ZachAR3/545a0d143534a7eccaf32a536e27cfc2 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
echo Launching jupyter server. | |
echo ----- | |
echo After the server has launched, go to https://colab.research.google.com | |
echo Click File -> Upload Notebook and upload the *.ipynb file | |
echo Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface. | |
echo Select "connect to a local runtime" and paste the URL that will be generated below. | |
echo which looks like "http://localhost:8888/?token=somenumbers" | |
echo Click "Connect" and CTRL+F9 to run all cells. | |
echo ------ | |
# A fix for https://github.com/conda/conda/issues/7980 | |
eval "$(conda shell.bash hook)" | |
conda activate ./env | |
jupyter notebook ./ --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0 | |
echo Notebook successfully launched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment