I get AttributeError: 'NotebookApp' object has no attribute 'io_loop'
when open jupyter on WSL2. Here is the log:
jupyter notebook
root@OokerLaptop:~# jupyter notebook
_ _ _ _
| | | |_ __ __| |__ _| |_ ___
| |_| | '_ \/ _` / _` | _/ -_)
\___/| .__/\__,_\__,_|\__\___|
|_|
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
[W 22:38:33.809 NotebookApp] Error loading server extension jupyter_lsp
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/notebook/notebookapp.py", line 2050, in init_server_extensions
func(self)
File "/usr/local/lib/python3.10/dist-packages/jupyter_lsp/serverextension.py", line 76, in load_jupyter_server_extension
nbapp.io_loop.call_later(0, initialize, nbapp, virtual_documents_uri)
AttributeError: 'NotebookApp' object has no attribute 'io_loop'
[I 2023-06-11 22:38:34.375 LabApp] JupyterLab extension loaded from /usr/local/lib/python3.10/dist-packages/jupyterlab
[I 2023-06-11 22:38:34.375 LabApp] JupyterLab application directory is /usr/local/share/jupyter/lab
[I 2023-06-11 22:38:34.376 LabApp] Extension Manager is 'pypi'.
[C 22:38:34.380 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
jupyter troubleshoot
root@OokerLaptop:~# jupyter troubleshoot
$PATH:
/root/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/remote-cli
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/usr/lib/wsl/lib
/mnt/c/Program Files/PowerShell/7
/mnt/c/Program Files/Java/jdk-11/bin
/mnt/c/Program Files/Common Files/Oracle/Java/javapath
/mnt/c/Python39/Scripts/
/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath
/mnt/c/Program Files/ImageMagick-7.0.11-Q16-HDRI
/mnt/c/WINDOWS/system32
/mnt/c/WINDOWS
/mnt/c/WINDOWS/System32/Wbem
/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/
/mnt/c/WINDOWS/System32/OpenSSH/
/mnt/c/Program Files/Graphviz/bin
/mnt/c/Program Files/dotnet/
/mnt/c/Program Files/nodejs/
/mnt/c/ProgramData/chocolatey/bin
/mnt/d/GitHub/cypher-shell
/mnt/c/Strawberry/c/bin
/mnt/c/Strawberry/perl/site/bin
/mnt/c/Strawberry/perl/bin
/mnt/c/Program Files (x86)/GnuWin32/bin
/mnt/c/Program Files/Notepad++
/mnt/c/Program Files (x86)/WinMerge
/mnt/c/Program Files/GitHub CLI/
/mnt/c/Program Files/Git/cmd
/mnt/c/Program Files (x86)/PDFtk/bin/
/mnt/c/Program Files/Calibre2/
/mnt/c/Program Files/TortoiseGit/bin
/mnt/c/Program Files/PowerShell/7/
/mnt/c/JupyterLab
/mnt/c/Users/ganuo/AppData/Roaming/ActiveState/bin
/mnt/c/Users/ganuo/AppData/Local/activestate/bin
/mnt/c/Users/ganuo/AppData/Local/Microsoft/WindowsApps
/mnt/c/Users/ganuo/AppData/Local/Programs/Microsoft VS Code/bin
/mnt/c/Users/ganuo/AppData/Roaming/npm
/mnt/c/Users/ganuo/AppData/Local/GitHubDesktop/bin
/mnt/c/Users/ganuo/AppData/Local/Microsoft/WindowsApps
/mnt/c/Users/ganuo/AppData/Local/gitkraken/bin
/mnt/c/Program Files (x86)/EShare/
/mnt/c/Program Files/Inkscape/bin
/mnt/c/Program Files/7-Zip
/mnt/c/Users/ganuo/.dotnet/tools
/mnt/c/Temp
/mnt/c/Users/ganuo/AppData/Local/Obsidian
/mnt/d/Programming/Binaries
/mnt/c/Users/ganuo/AppData/Local/PackagesC
/bin
/mnt/c/Users/ganuo/AppData/Local/Programs/Python/Python311/Scripts/
/mnt/c/Users/ganuo/AppData/Local/Programs/Python/Python311/
/mnt/c/Users/ganuo/AppData/Local/Packages
/mnt/c/Program Files/JetBrains/PyCharm Community Edition 2023.1.2/bin
/snap/bin
sys.path:
/usr/bin
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/root/.local/lib/python3.10/site-packages
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
sys.executable:
/usr/bin/python3
sys.version:
3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
platform.platform():
Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
which -a jupyter:
/usr/bin/jupyter
/bin/jupyter
/bin/jupyter
pip list:
Package Version
------------------------ -------------
anyio 3.7.0
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
arrow 1.2.3
asttokens 2.2.1
async-lru 2.0.2
attrs 23.1.0
Babel 2.12.1
backcall 0.2.0
beautifulsoup4 4.12.2
bleach 6.0.0
blinker 1.4
certifi 2023.5.7
cffi 1.15.1
charset-normalizer 3.1.0
comm 0.1.3
command-not-found 0.3
cryptography 3.4.8
dbus-python 1.2.18
debugpy 1.6.7
decorator 5.1.1
defusedxml 0.7.1
distro 1.7.0
distro-info 1.1build1
exceptiongroup 1.1.1
executing 1.2.0
fastjsonschema 2.17.1
fqdn 1.5.1
httplib2 0.20.2
idna 3.4
importlib-metadata 4.6.4
ipykernel 6.23.1
ipython 8.13.2
ipython-genutils 0.2.0
ipywidgets 8.0.6
isoduration 20.11.0
jedi 0.18.2
jeepney 0.7.1
Jinja2 3.1.2
json5 0.9.14
jsonpointer 2.3
jsonschema 4.17.3
jupyter_client 8.2.0
jupyter_core 5.3.0
jupyter-events 0.6.3
jupyter-lsp 2.2.0
jupyter_server 2.6.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.2
jupyterlab-pygments 0.2.2
jupyterlab_server 2.22.1
jupyterlab-widgets 3.0.7
keyring 23.5.0
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
MarkupSafe 2.1.3
matplotlib-inline 0.1.6
mistune 2.0.5
more-itertools 8.10.0
nbclassic 1.0.0
nbclient 0.8.0
nbconvert 7.4.0
nbformat 5.8.0
nest-asyncio 1.5.6
netifaces 0.11.0
notebook 6.5.4
notebook_shim 0.2.3
oauthlib 3.2.0
overrides 7.3.1
packaging 23.1
pandocfilters 1.5.0
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
pip 22.0.2
platformdirs 3.5.1
prometheus-client 0.17.0
prompt-toolkit 3.0.38
psutil 5.9.5
ptyprocess 0.7.0
pure-eval 0.2.2
pycparser 2.21
Pygments 2.15.1
PyGObject 3.42.1
PyJWT 2.3.0
pyparsing 2.4.7
pyrsistent 0.19.3
python-apt 2.4.0+ubuntu1
python-dateutil 2.8.2
python-json-logger 2.0.7
PyYAML 5.4.1
pyzmq 25.1.0
requests 2.31.0
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
SecretStorage 3.3.1
Send2Trash 1.8.2
setuptools 59.6.0
six 1.16.0
sniffio 1.3.0
soupsieve 2.4.1
stack-data 0.6.2
systemd-python 234
terminado 0.17.1
tinycss2 1.2.1
tomli 2.0.1
tornado 6.3.2
traitlets 5.9.0
typing_extensions 4.6.3
ubuntu-advantage-tools 8001
ufw 0.36.1
unattended-upgrades 0.1
uri-template 1.2.0
urllib3 2.0.3
wadllib 1.3.6
wcwidth 0.2.6
webcolors 1.13
webencodings 0.5.1
websocket-client 1.5.3
wheel 0.37.1
widgetsnbextension 4.0.7
zipp 1.0.0
root@OokerLaptop:~#