jupyter / qtconsole

Jupyter Qt Console
https://qtconsole.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
418 stars 201 forks source link

qtconsole is not respecting option #429

Open penilessquant opened 4 years ago

penilessquant commented 4 years ago

Hi there i installed latest jupyter from conda-forge, and when I run jupyter qtconsole --KernelManager.autorestart=False --KernelRestarter.restart_limit=1 the qtconsole does not seem to be respecting the options. I have also placed these settings in 'C:\ProgramData\Anaconda3\envs\fx_env\etc\jupyter\jupyter_qtconsole_config.py' but that seems to be ignored too. I can confirm that the config file is loaded at startup as I can see this at startup

[JupyterQtConsoleApp] Loaded config file: C:\ProgramData\Anaconda3\envs\fx_env\etc\jupyter\jupyter_qtconsole_config.py

What am I doing wrong?

# Configuration file for ipython-qtconsole.
# Create a massive crash report when IPython encounters what may be an internal
# error.  The default is to append a short message to the usual traceback
c.IPKernelApp.verbose_crash = True
c.KernelRestarter.restart_limit = 0
c.KernelRestarter.debug = True
c.KernelManager.autorestart = False

I am actually trying to debug a kernel crash every 3 seconds and I have a raised an issue here https://github.com/ipython/ipython/issues/12430 Do you know how I can set all the different options listed here https://qtconsole.readthedocs.io/en/stable/config_options.html ?

penilessquant commented 4 years ago

Ah at least I have figured out the config, or rather the lack of it. When you run jupyter qtconsole the timer is hardcoded in client.py:

I changed this to 20 seconds, but it's still timing out. is there any logging or dependencies I can check for this channel? This issie is that both Jupyter and Spyder console depends on this

class QtHBChannel(SuperQObject, HBChannel):
    # A longer timeout than the base class
    time_to_dead = 3.0

    # Emitted when the kernel has died.
    kernel_died = QtCore.Signal(object)