Nothing shows up when i run Jupyter notebook - jupyter-notebook

When i run jupyter notebook it just shows up blank
I checked Console for errors and it showed me this:
Console error message
This is the line that the above Error message is referring to:
Error message line
Here is the URL bar if you need it (this is what the URL bar shows when i launch Jupyter notebook):
URL

used
jupyter nbconvert --to script object_detection_tutorial.ipynb
to convert .ipynb to .txt, then copied the code to a .py file

Related

Unreadable Notebook: NotADirectoryError(20, 'The directory name is invalid')

I created a Jupyter notebook inside a virtualenv environment and worked fine in the first session. However, when I tried to open the notebook again, I got the error titled Error loading notebook saying Unreadable Notebook: 'Path' NotADirectoryError(20, 'The directory name is invalid'), where 'Path' is just the local path of the notebook.
I'm able to open the notebook using Colab and it works fine. Also, it is saved inside a folder that is synced by Google Drive.
How can I open my notebook with Jupyter again?
A print screen of the error:
Thanks
I have tried reinstalling Jupyter Notebook, but the error persists.

Prevent jupyter console from reading code from jupyter notebook

When on jupyter console and I hit the up arrow key, I'd like to go to the previously run line of code on that console. However it will read a previously run cell from a jupyter notebook instead. Is there a way to prevent this from happening?

Repare jupyter Notebook

Is there a way to repare a jupyter notebook. I can't open the notebook anymore.
I am having the following error when trying to open it.
Unreadable Notebook: path/to/notebook.ipynb UnicodeDecodeError('utf-8', b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x15\x18\x00\x00\x0e\x10\x08\x06\x00\x00\x00\x83\xba\xacA\x00\x00\x009tEXtSoftware\x00Matplotlib version3.3.3,
....
invalid start byte'
The same error happens when opening the notebook in lab or notebook.
Other notebooks open without problem.

How can i edit jupyter notebook from terminal without opening web browser?

How can I edit my jupyter notebook in terminal.
I just don't like to open jupyter notebook in web browser.
I google out but every answer is related to how can we open notebook from terminal directly.
I'd suggest looking at Jupytext's ability to do command line conversions back-and-forth from the notebook json structure to a python script (or markdown). If you already have the backbone of a notebook (.ipynb) file, you can convert it to .py script using jupytext --to py notebook.ipynb. That makes a text file that is easy to edit in your favorite terminal based text editor. The json in the .ipynb files is not as easy to edit directly.
Then when you are done editing, you can convert the .py script form back to a notebook with something like jupytext --to notebook notebook.py. Optionally, you can even execute it without opening a browser by adding --execute. I have an example conversion-and-execution command in use here.

Jupyter Notebook - .ipynb files - opening as plain text - No longer interactive notebook

I have a Windows 10 machine with VirtualBox, Linux Mint 18, running Jupyter Notebook.
I have successfully generated 20+ notebooks and viewed them running html, and processed still images.
I changed the viewer to view the source code of the page, and cannot figure out how to switch back to the notebook view.
Now when I click on my .ipynb files, I see the plain text, but no longer am viewing the file as an interactive Jupyter notebook.
I've tried changing the lower bar setting to JSON and HTML, but that does not seem to correct the problem.
Ahhh, Jupyter notebook was not running when I clicked on the .ipynb file.
Because the .ipynb files are stored in plain text format, Mint just opened the file as plain text, rather than giving me an error message saying "cannot open .ipynb files."
PROBLEM SOLVED

Resources