Created
February 18, 2021 10:26
-
-
Save nguyenvulong/8e1f8e615a688ae1b5cfbe9f1db030fc 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
#credit korakot: https://stackoverflow.com/questions/60775160/install-python-3-8-kernel-in-google-colaboratory | |
# install Anaconda3 | |
!wget -qO ac.sh https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh | |
!bash ./ac.sh -b | |
# a fake google.colab library | |
!ln -s /usr/local/lib/python3.6/dist-packages/google \ | |
/root/anaconda3/lib/python3.8/site-packages/google | |
# start jupyterlab, which now has Python3 = 3.8 | |
!nohup /root/anaconda3/bin/jupyter-lab --ip=0.0.0.0& | |
# access through ngrok, click the link | |
!pip install pyngrok -q | |
from pyngrok import ngrok | |
print(ngrok.connect(8888)) | |
#!pip install kora | |
#import kora.install.py38 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that one is outdated and too complicated. You can try other suggestion in stackoverflow and this. Basically they download a notebook, change the kernel spec, reupload it and connect to the py3.8 environment created by conda & ipykernel.