Jupyter Notebook: Change Data Rate Limit Inside Active Notebook

匆匆过客 提交于 2019-12-11 01:48:19

问题


I have a jupyter notebook where an executed cell gives the following error:

IOPub data rate exceeded...

I understand this is an option:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

However, I would really prefer to just to set this along with my import statements and other notebook settings instead of tweaking configuration files or command line when starting notebooks. Is there an easy way to do this?


回答1:


I would recommend creating an alias jn to launch Jupyter notebook with these settings every time. You do it once for all and do not have to tweak with command line after. Under UNIX system you run in terminal ::

alias jn="jupyter notebook --NotebookApp.iopub_data_rate_limit=2147483647"

To enable this alias at every session you have to append this command line to your shell config file, by default ~/.bash_profile

If you run Windows check the equivalence to aliases



来源:https://stackoverflow.com/questions/48235621/jupyter-notebook-change-data-rate-limit-inside-active-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!