سؤال

Is there any way to configure ipython notebook to not keep inactive notebook processes around alive indefinitely? For example automatically shutdown the notebook whenever the client disconnects, or after being idle for n minutes.

هل كانت مفيدة؟

المحلول 3

No, there's no config option for that. Feel free to file an issue to request the feature.

نصائح أخرى

This feature was added in release 5.1. See the following issue and pull request

Solution in 2021

Set the following values in ~/.jupyter/jupyter_notebook_config.py or your config file

c.MappingKernelManager.cull_busy = False
c.MappingKernelManager.cull_connected = False
c.MappingKernelManager.cull_idle_timeout = 86400

where the 86400 means 1 day (= 86400s).

See also

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top