We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c11ea3 commit 5a7d3cfCopy full SHA for 5a7d3cf
src/inspectorscripts.ts
@@ -27,7 +27,11 @@ from IPython.core.magics.namespace import NamespaceMagics
27
28
_jupyterlab_variableinspector_nms = NamespaceMagics()
29
_jupyterlab_variableinspector_Jupyter = get_ipython()
30
-_jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter.kernel.shell
+# Check kernel implementation
31
+if hasattr(_jupyterlab_variableinspector_Jupyter.kernel, 'shell'):
32
+ _jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter.kernel.shell
33
+else:
34
+ _jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter
35
36
_jupyterlab_variableinspector_maxitems = 10
37
0 commit comments