If while accessing a Notebook on Jupyter on your web browser you see a 404 - Not Found error, then make sure that you are trying to access a valid page/notebook.
Fix/Solutions:
1. Just go to the homepage of Jupyter: http://localhost:8888/tree (default is 8888, may differ if changed, check the logs)
2. See the logs on the console and see if the directory from which the Notebook was serving is available and not deleted or moved.
Serving notebooks from local directory: /Users/c2ctechtv/Desktop/myproj2
3. If you visit http://localhost:8888/tree yet you see the same 404 Erorr, then try the following.
- Go to your Terminal/Command Prompt (depending if you are using Mac or Windows) where the Jupyter is running.
- Terminate the kernel by pressing Control + C
- Restart Notebook.
python3 -m notebook
[I 06:07:28.137 NotebookApp] The port 8888 is already in use, trying another port. [I 06:07:28.138 NotebookApp] Serving notebooks from local directory: /Users/c2ctechtv/Desktop/myproj2 [I 06:07:28.138 NotebookApp] Jupyter Notebook 6.5.4 is running at: [I 06:07:28.138 NotebookApp] http://localhost:8889/?token=54e40f447444e0df392e94d5c6e2f389b6a756071a6e0300 [I 06:07:28.138 NotebookApp] or http://127.0.0.1:8889/?token=54e40f447444e0df392e94d5c6e2f389b6a756071a6e0300 [I 06:07:28.138 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
- If there were any issues to start Notebook on the default 8888 port, it will be launched from 8889 or other.
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- How to convert int to ASCII in Python
- How to make use of SQLite Module in Python?
- Split a String into Sub-string and Parse in Python
- Python: Pandas Rename Columns with List Example
- How to run Python file from Mac Terminal
- How to Exit a Loop in Python Code
- Python: How to Plot a Histogram using Matplotlib and data as list
- MD5 Hashing in Python
- Jupyter: Safari Cant Connect to the Server localhost:8888/tree
- Fix: AttributeError: str object has no attribute decode. Did you mean: encode?[Python]
- How to Read a binary File with Python
- How to add two float numbers in Python
- Python: How to install YAML Package
- Python: How to Save Image from URL
- What is Markdown in Jupyter Notebook with Examples
- How to change the Python Default version
- 33: Python Program to send an email vid GMail
- How to comment code in Python
- How to Fix AttributeError in Python
- Fix: error: Jupyter command `jupyter-nbconvert` not found [VSCode]
- How to comment out a block of code in Python
- List of All 35 Reserved Keywords in Python Programming Language 3.11
- Import Other Python Files Examples
- Python: How to add Progress Bar in Console with Examples
- 3 Ways to convert bytes to String in Python
- Ways to know the Logged in Username using Terminal [macOS/Linux/Unix] - Linux
- JSON Tutorial: List of Lessons - Json-Tutorial
- How to add sleep in Powershell Script - Powershell
- How to disable Siri on Mac Monterey - MacOS
- PowerShell SubString with Examples - Powershell
- What is CA FE BA BE 00 00 00 3D in Java Class Bytecode - Java
- Fail to connect to camera service Android java RuntimeException - Android
- How to turn off CR LF CRLF in Notepad++ - NotepadPlusPlus