How to increase Jupyter notebook Memory limit?

后端 未结 2 1910
孤独总比滥情好
孤独总比滥情好 2020-12-01 14:17

I am using jupyter notebook with Python3 on windows 10. My computer has 8GB RAM and at least 4GB of my RAM is free.

But when I want to make a numpy ndArray with size

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 14:59

    Jupyter notebook has a default memory limit size. You can try to increase the memory limit by following the steps:
    1) Generate Config file using command:

    jupyter notebook --generate-config
    2) Open jupyter_notebook_config.py file situated inside 'jupyter' folder and edit the following property:
    NotebookApp.max_buffer_size = your desired value
    Remember to remove the '#' before the property value.
    3) Save and run the jupyter notebook. It should now utilize the set memory value. Also, don't forget to run the notebook from inside the jupyter folder.


    Alternatively, you can simply run the Notebook using below command:

     jupyter notebook --NotebookApp.max_buffer_size=your_value

提交回复
热议问题