Hi I am fairly new to ubuntu, and today when I tried to open jupyter notebook I got the following error:
myname@My-Laptop:~$ jupyter notebook
[I 2022-08-08 07:58:41.188 LabApp] JupyterLab extension loaded from /home/myname/.local/lib/python3.8/site-packages/jupyterlab
[I 2022-08-08 07:58:41.188 LabApp] JupyterLab application directory is /home/myname/.local/share/jupyter/lab
[I 07:58:41.192 NotebookApp] Serving notebooks from local directory: /home/myname
[I 07:58:41.192 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 07:58:41.192 NotebookApp] http://localhost:8888/?token=da2f7fe6c8a740552fa218fb35dc25f82a4ca50d30a39605
[I 07:58:41.192 NotebookApp] or http://127.0.0.1:8888/?token=da2f7fe6c8a740552fa218fb35dc25f82a4ca50d30a39605
[I 07:58:41.192 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 07:58:41.192 NotebookApp] Failed to write server-info to /home/aswirbul/.local/share/jupyter/runtime/nbserver-71.json: [Errno 28] No space left on device
OSError: [Errno 28] No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/myname/.local/bin/jupyter-notebook", line 8, in <module>
sys.exit(main())
File "/home/myname/.local/lib/python3.8/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
File "/home/myname/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 976, in launch_instance
app.start()
File "/home/myname/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 2336, in start
self.write_browser_open_file()
File "/home/myname/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 2240, in write_browser_open_file
self._write_browser_open_file(open_url, f)
OSError: [Errno 28] No space left on device
I am confused as to why I am getting this error, since my laptop has plenty of storage left. I used df -h
and got the following:
myname@My-Laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 251G 239G 0 100% /
tmpfs 3.1G 0 3.1G 0% /mnt/wsl
tools 476G 421G 56G 89% /init
none 3.1G 0 3.1G 0% /dev
none 3.1G 4.0K 3.1G 1% /run
none 3.1G 0 3.1G 0% /run/lock
none 3.1G 0 3.1G 0% /run/shm
none 3.1G 0 3.1G 0% /run/user
tmpfs 3.1G 0 3.1G 0% /sys/fs/cgroup
drivers 476G 421G 56G 89% /usr/lib/wsl/drivers
lib 476G 421G 56G 89% /usr/lib/wsl/lib
C:\ 476G 421G 56G 89% /mnt/c
How can I clear up some space (without deleting my important files) to get jupyter notebook to open again?
df -ih
. It's not often the problem, but on the puzzling occasion that it is the problem you'll be glad you remembered.