No output - Jupyter Notebook
I was able to solve this by Uninstalling tornado 6 and installing tornado 5.
5.1.1
is the last stable version and fixed my problem.
Referenced from Jupyter notebook: No connection to server because websocket connection fails
Print not showing in ipython notebook
I had a similar printing problem when my first code cell was:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
Then I've commented the second and third lines like this:
import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
Reset the kernel and re-ran the program and now my print statements are working properly.
Later on, I've found that when I was first having the printing problem, all print outputs were actually being sent to the ipython console terminal (on my Linux box), instead of being embed on the notebook.
How do you suppress output in Jupyter running IPython?
Add %%capture
as the first line of the cell. eg
%%capture
print('Hello')
MyFunction()
This simply discards the output, but the %%capture
magic can be used to save the output to a variable - consult the docs
Related Topics
How to Calculate a Gaussian Kernel Matrix Efficiently in Numpy
Append Dataframes Together in for Loop
How to Set Proxy Authentication (User & Password) Using Python + Selenium
Visual Studio Code Intellisense Is Very Slow - Is There Anything I Can Do
Pandas: Calculate the Percentage Between Two Rows and Add the Value as a Column
Heroku: No Default Language Could Be Detected for This App
How to Pass a .Txt File to a Function in Python
Why Does It Say That Module Pygame Has No Init Member
How to Remove Commas and Dots of Individual Word in Two Dimensional List
How to Calculate R-Squared Using Python and Numpy
How to Get String Objects Instead of Unicode from Json
How to Delete a Record by Id in Flask-Sqlalchemy
How to Pivot on Multiple Columns in Spark SQL
Best Practice to Run Multiple Spark Instance At a Time in Same Jvm
Replace Only Exactly Matching String Python Ndarry
Setting Matplotlib Colorbar Range
Splitting Dataframe into Multiple Dataframes
Tensorflow:Attributeerror: 'Module' Object Has No Attribute 'Mul'