File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,18 @@ def subshell(self, arg_s):
472472class ZMQInteractiveShell (InteractiveShell ):
473473 """A subclass of InteractiveShell for ZMQ."""
474474
475+ def __init__ (self , * args , ** kwargs ):
476+ super ().__init__ (* args , ** kwargs )
477+
478+ # tqdm has an incorrect detection of ZMQInteractiveShell when launch via
479+ # a scheduler that bypass IPKernelApp Think of JupyterHub cluster
480+ # spawners and co. as of end of Feb 2025, the maintainer has been
481+ # unresponsive for 5 months, to our fix, so we implement a workaround. I
482+ # don't like it but we have few other choices.
483+ # See https://github.com/tqdm/tqdm/pull/1628
484+ if "IPKernelApp" not in self .config :
485+ self .config .IPKernelApp .tqdm = "dummy value for https://github.com/tqdm/tqdm/pull/1628"
486+
475487 displayhook_class = Type (ZMQShellDisplayHook )
476488 display_pub_class = Type (ZMQDisplayPublisher )
477489 data_pub_class = Any () # type:ignore[assignment]
You can’t perform that action at this time.
0 commit comments