> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autodl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JupyterLab打不开

## 第1种原因

因为安装某些依赖导致JupyterLab的依赖被动升级或降级，从而影响了JupyterLab的运行，此时可以[SSH](https://docs.autodl.com/instance/connection/ssh.md)登录到实例，然后输入`jupyter-lab`命令进行确认，如果执行命令报错则说明是此问题，那么可以通过`pip install jupyterlab`再次安装后重启实例恢复。

（如果是windows用户，可以使用cmd或powershell进行ssh登录，**但是可能无法正常粘贴密码，需手动输入密码**）

![image-20220606123830286](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220606123830286.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=0ea63333306d69535dc61dd9663a0d73)

输入jupyter-lab后看到以上输出则说明jupyterlab正常。如果发生以下类似报错，则jupyterlab无法启动

![image-20220627165054847](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220627165054847.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=1f27a8a562557ae1ece6b0079fe10bf5)

jupyter-lab发现启动报错，重装jupyterlab即可（如果pip命令不存在，那么先执行`conda install pip`，如果conda命令不存在，说明您可能删除了miniconda，最简单的解决方案是[重置系统](https://docs.autodl.com/instance/configuration/reset_instance.md)）：

第一步卸载当前的jupyterlab：`pip uninstall jupyterlab`

第二步重新安装：`pip install jupyterlab`

![image-20220606124013283](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220606124013283.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=8e7b0286fd579925e4e48c918711d2bc)

## 第2种原因

排除第1种原因，其他大概率为网络问题，特别是挂了FQ的VPN，导致访问带端口的JupyterLab地址受限。

这种情况一般能看到网页上JupyterLab的ICON图标，但是页面无法加载显示空白

![image-20220706111603963](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220706111603963.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=0a67d06a378d2c2739a04f8b260aa19f)

解决方法：

1. 关闭VPN，测试是否可以正常访问
2. 如果关闭了VPN，依然无法访问，那么需要打开VPN，将VPN的模式开为**直连模式**。VPN没有直连模式的，选择PAC模式，请勿选择全局模式（个别VPN即使关闭依然会对系统的网络造成影响），下图为Mac某款VPN和Windows某款VPN的设置：

![image-20220706111126421](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220706111126421.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=9aaedbf9c1cfc75ec3a160ae8d437c91)

![image-20220718145035850](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220718145035850.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=f2cb95c61f1eccd22ba1312cccf02cd8)

3. 以上配置了VPN直连模式后，如果仍然无法打开，那么在JupyterLab网页按\[F12] -> 选择Network -> 勾选Disable cache，勾选后刷新网页

   ![image-20220804140130885](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/faq/qa2/image-20220804140130885.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=3b49fcc232e89c8a880cfe1f327ef3fb)

4. 最后的绝招：更换浏览器。

## 第3种原因

部分校园网对访问端口有限制，如果您使用校园网，可以尝试切换非校园网使用，比如连接手机热点。

如果以上不能解决问题，请联系客服处理。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.