Jupyter Notebook: Change Data Rate Limit Inside Ac

2019-07-14 20:07发布

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条回答
乱世女痞
2楼-- · 2019-07-14 20:23

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

查看更多
登录 后发表回答