Skip to content

Instantly share code, notes, and snippets.

@libChan
Created December 13, 2021 08:24
Show Gist options
  • Save libChan/2b41de94b270fa980659675f35a60133 to your computer and use it in GitHub Desktop.
Save libChan/2b41de94b270fa980659675f35a60133 to your computer and use it in GitHub Desktop.
Windows Chrome使用WSL jupyter
# 生成配置文件
jupyter notebook --generate-config
# 编辑配置文件,禁用重定向文件
vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.use_redirect_file = False
# 在环境变量中配置Windows浏览器地址
export BROWSER='/mnt/c/Program Files/Google/Chrome/Application/chrome.exe'
# jupyter-notebook安装在~/.local/bin下,将其添加到环境变量,在指定目录启动
export PATH=$PATH:~/.local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment