Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 05:04 AM
AttributeError: 'IPythonShell' object has no attribute 'kernel'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<command-2848973972456360> in <module>
3 import pmdarima as pm
4 import matplotlib.pyplot as plt
----> 5 import seaborn as sns
6 import joblib
7 from sklearn.model_selection import TimeSeriesSplit
/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py in import_patch(name, globals, locals, fromlist, level)
165 # Import the desired module. If you’re seeing this while debugging a failed import,
166 # look at preceding stack frames for relevant error information.
--> 167 original_result = python_builtin_import(name, globals, locals, fromlist, level)
168
169 is_root_import = thread_local._nest_level == 1
/databricks/python/lib/python3.8/site-packages/seaborn/__init__.py in <module>
10 from .miscplot import * # noqa: F401,F403
11 from .axisgrid import * # noqa: F401,F403
---> 12 from .widgets import * # noqa: F401,F403
13 from .colors import xkcd_rgb, crayons # noqa: F401
14 from . import cm # noqa: F401
/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py in import_patch(name, globals, locals, fromlist, level)
165 # Import the desired module. If you’re seeing this while debugging a failed import,
166 # look at preceding stack frames for relevant error information.
--> 167 original_result = python_builtin_import(name, globals, locals, fromlist, level)
168
169 is_root_import = thread_local._nest_level == 1
/databricks/python/lib/python3.8/site-packages/seaborn/widgets.py in <module>
5 # Lots of different places that widgets could come from...
6 try:
----> 7 from ipywidgets import interact, FloatSlider, IntSlider
8 except ImportError:
9 import warnings
/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py in import_patch(name, globals, locals, fromlist, level)
165 # Import the desired module. If you’re seeing this while debugging a failed import,
166 # look at preceding stack frames for relevant error information.
--> 167 original_result = python_builtin_import(name, globals, locals, fromlist, level)
168
169 is_root_import = thread_local._nest_level == 1
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in <module>
57 register_comm_target()
58
---> 59 _handle_ipython()
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in _handle_ipython()
55 if ip is None:
56 return
---> 57 register_comm_target()
58
59 _handle_ipython()
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in register_comm_target(kernel)
45 def register_comm_target(kernel=None):
46 """Register the jupyter.widget comm target"""
---> 47 comm_manager = get_comm_manager()
48
49 comm_manager.register_target('jupyter.widget', Widget.handle_comm_opened)
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in get_comm_manager()
31 ip = get_ipython()
32
---> 33 if ip is not None and ip.kernel is not None:
34 return get_ipython().kernel.comm_manager
35 This is the code