Skip to content

Instantly share code, notes, and snippets.

@libChan
Created December 13, 2021 08:24
Show Gist options
  • Select an option

  • Save libChan/2b41de94b270fa980659675f35a60133 to your computer and use it in GitHub Desktop.

Select an option

Save libChan/2b41de94b270fa980659675f35a60133 to your computer and use it in GitHub Desktop.

Revisions

  1. libChan revised this gist Dec 13, 2021. No changes.
  2. libChan created this gist Dec 13, 2021.
    9 changes: 9 additions & 0 deletions wsl_jupyter_chrome.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 生成配置文件
    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