Jupyter Notebook error: IOPub data rate exceeded solution

When using jupyter notebook to write code and encounter print without output results , as shown in the following figure

Don't panic, this is not a code error, but the IOPub data rate is limited, that is, jupyter limits the output

Solution

1. cmd opens the command line window, enter jupyter notebook --generate-config (there is a space after the notebook)

If this happens, instead enter jupyter notebook --generate-config in Anaconda Prompt

2. The configuration file path of jupyter appears, do not enter, just follow this path to find the jupyter_notebook_config.py file

 3. Open the file with notepad or python, ctrl+F to open the search window, enter iopub_data_rate_limit

Find a specific line, uncomment it, add a lot of 0's

 

 4. Restart the jupyter notebook, the display is normal

Guess you like

Origin blog.csdn.net/xucanlax/article/details/124462706