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 @@ -468,6 +468,18 @@ def subshell(self, arg_s):
468468class ZMQInteractiveShell (InteractiveShell ):
469469 """A subclass of InteractiveShell for ZMQ."""
470470
471+ def __init__ (self , * args , ** kwargs ):
472+ super ().__init__ (* args , ** kwargs )
473+
474+ # tqdm has an incorrect detection of ZMQInteractiveShell when launch via
475+ # a scheduler that bypass IPKernelApp Think of JupyterHub cluster
476+ # spawners and co. as of end of Feb 2025, the maintainer has been
477+ # unresponsive for 5 months, to our fix, so we implement a workaround. I
478+ # don't like it but we have few other choices.
479+ # See https://github.com/tqdm/tqdm/pull/1628
480+ if "IPKernelApp" not in self .config :
481+ self .config .IPKernelApp .tqdm = "dummy value for https://github.com/tqdm/tqdm/pull/1628"
482+
471483 displayhook_class = Type (ZMQShellDisplayHook )
472484 display_pub_class = Type (ZMQDisplayPublisher )
473485 data_pub_class = Any () # type:ignore[assignment]
You can’t perform that action at this time.
0 commit comments