title: Python cannot importlib.reload module. Raises NotImplementedError
body: <p>I cannot reload a module in a jupyter notebook. Traceback:</p>
  <pre><code>NotImplementedError                       Traceback (most recent call last)
  Input In [70], in &lt;cell line: 3&gt;()
        1 import importlib
        2 import exploring_variance
  ----&gt; 3 importlib.reload(exploring_variance)
        5 str_args = &quot;&quot;&quot;--threads 6&quot;&quot;&quot;
        6 str_args = shlex.split(str_args)
  
  File /usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:169, in reload(module)
      167 if spec is None:
      168     raise ModuleNotFoundError(f&quot;spec not found for the module {name!r}&quot;, name=name)
  --&gt; 169 _bootstrap._exec(spec, module)
      170 # The module may have replaced itself in sys.modules!
      171 return sys.modules[name]
  
  File &lt;frozen importlib._bootstrap&gt;:606, in _exec(spec, module)
  
  File &lt;frozen importlib._bootstrap&gt;:550, in _init_module_attrs(spec, module, override)
  
  File &lt;frozen importlib._bootstrap&gt;:390, in cached(self)
  
  NotImplementedError:
  </code></pre>