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 |
Hi @nguyenvulong , This doesn't seem to work the way it should
I got this thrown at me :
The connection to http://44ee-xx-xxx-xx-xxx.ngrok.io/ was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address [localhost:8000](http://localhost:8000/). Make sure that a web service is running on [localhost:8000](http://localhost:8000/) and that it is a valid address. The error encountered was: dial tcp 127.0.0.1:8000: connect: connection refused
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nguyenvulong , This doesn't seem to work the way it should
I got this thrown at me :