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
@sheyu921
sheyu921 / migrate wsl
Last active July 25, 2024 02:05
Copy the wsl package
wsl -l -v
wsl -t <DistroName>
wsl --export <DistroName> <PathToTarArchive>
wsl --unregister <DistroName>
wsl --import <DistroName> <PathToDistroNewDirectory> <PathToTarArchive>
<DistroName>=ubuntu
ubuntu.exe 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