Skip to content

Instantly share code, notes, and snippets.

View sheyu921's full-sized avatar

sheyu921 sheyu921

View GitHub Profile
How to run jupyter lab/notebook on the server
First install and confige jupyter
Install:
conda activate ???? (your virtual env)
conda install jupyter notebook
Confige:
jupyter server --generate-config
wsl --shutdown
wsl -l -v
wsl --export <DistroName> <PathToTarArchive>
wsl --unregister <DistroName>
wsl --import <DistroName> <PathToDistroNewDirectory> <PathToTarArchive>
<DistroName>=ubuntu
<DistroName> config --default-user xxx
export ALL_PROXY="http://$host_ip:7890"
# where $host_ip should be the ip running the proxy app
@sheyu921
sheyu921 / jupyter_notebook+wsl+win10+chrome
Last active November 23, 2020 01:56
run jupyter_notebook on wsl to open chrome on win10
First of all, please install the jupyter notebook
conda install jupyter notebook
or
pip install jupyter notebook
Second, create the configure file of the jupyter notebook
jupyter notebook --generate-config
Third, edit jupyter_notebook_config.py:
1. Open the file