Skip to content

Fix slow import by encapsulating ipynbname.name() call

Tobias Hangleiter requested to merge hotfix/slow_import_workaround into master

@simon.humpohl any less hacky ideas?

The problem is that (at least in Windows) in case there is no jupyter server running, ipynbname.name() takes very long (the timeout duration of the http request) to realize this. That makes imports from qutil import x very slow because somehow lazy_loader runs the module code even if x != ui.

Merge request reports