Pages

Showing posts with label ipython. Show all posts
Showing posts with label ipython. Show all posts

Everything you need to know about Jupyter Notebook

To start a notebook 
In terminal, run

jupyter-notebook 

Now, the notebook will be opened in your default browser.

To change the current line as comment

Ctrl + /   (this will change the current line in to a comment. To convert multiple lines of code in to a comment, select the lines that you want to convert and then hit Ctrl + /

Running different programs in Jupyter-Notebook

You can run Bash comments in jupyter-notebook. In any cell, type %%bash then that shell can be used to to bash comments. Similarly, other programming languages also can be run. A detailed post will be written on this topic.   

Jupyter Notebook error: AttributeError: type object 'IOLoop' has no attribute 'initialized'

AttributeError: type object 'IOLoop' has no attribute 'initialized'

This error may be due to the tornado==5.0* versions. Using Tornado 4.5.3 solves the problem.

To do this, try

pip3 uninstall tornado
pip3 install tornado==4.5.3
This solved my problem. Comment if this is useful to you.


You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...