<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7299#M3203</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;AttributeError: 'IPythonShell' object has no attribute 'kernel'
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
&amp;lt;command-2848973972456360&amp;gt; in &amp;lt;module&amp;gt;
      3 import pmdarima as pm
      4 import matplotlib.pyplot as plt
----&amp;gt; 5 import seaborn as sns
      6 import joblib
      7 from sklearn.model_selection import TimeSeriesSplit
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/seaborn/__init__.py in &amp;lt;module&amp;gt;
     10 from .miscplot import *  # noqa: F401,F403
     11 from .axisgrid import *  # noqa: F401,F403
---&amp;gt; 12 from .widgets import *  # noqa: F401,F403
     13 from .colors import xkcd_rgb, crayons  # noqa: F401
     14 from . import cm  # noqa: F401
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/seaborn/widgets.py in &amp;lt;module&amp;gt;
      5 # Lots of different places that widgets could come from...
      6 try:
----&amp;gt; 7     from ipywidgets import interact, FloatSlider, IntSlider
      8 except ImportError:
      9     import warnings
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in &amp;lt;module&amp;gt;
     57     register_comm_target()
     58 
---&amp;gt; 59 _handle_ipython()
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in _handle_ipython()
     55     if ip is None:
     56         return
---&amp;gt; 57     register_comm_target()
     58 
     59 _handle_ipython()
&amp;nbsp;
/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"""
---&amp;gt; 47     comm_manager = get_comm_manager()
     48 
     49     comm_manager.register_target('jupyter.widget', Widget.handle_comm_opened)
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in get_comm_manager()
     31         ip = get_ipython()
     32 
---&amp;gt; 33         if ip is not None and ip.kernel is not None:
     34             return get_ipython().kernel.comm_manager
     35 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the code&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 12:04:10 GMT</pubDate>
    <dc:creator>abi-tosh</dc:creator>
    <dc:date>2023-03-22T12:04:10Z</dc:date>
    <item>
      <title>Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7297#M3201</link>
      <description>&lt;P&gt;I have been getting this error repeatedly when trying to run a notebook. I have tried attaching multiple different clusters and installing some of the libraries that it wanted me to update. I have also tried to clear the state of the notebook and restarted the clusters, but couldn't get rid of the error. Any tips to solve this?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 11:43:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7297#M3201</guid>
      <dc:creator>abi-tosh</dc:creator>
      <dc:date>2023-03-22T11:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7298#M3202</link>
      <description>&lt;P&gt;I found this link:https://github.com/ipython/ipython/issues/10377.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check if this is helpful?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 11:53:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7298#M3202</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-03-22T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7299#M3203</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;AttributeError: 'IPythonShell' object has no attribute 'kernel'
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
&amp;lt;command-2848973972456360&amp;gt; in &amp;lt;module&amp;gt;
      3 import pmdarima as pm
      4 import matplotlib.pyplot as plt
----&amp;gt; 5 import seaborn as sns
      6 import joblib
      7 from sklearn.model_selection import TimeSeriesSplit
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/seaborn/__init__.py in &amp;lt;module&amp;gt;
     10 from .miscplot import *  # noqa: F401,F403
     11 from .axisgrid import *  # noqa: F401,F403
---&amp;gt; 12 from .widgets import *  # noqa: F401,F403
     13 from .colors import xkcd_rgb, crayons  # noqa: F401
     14 from . import cm  # noqa: F401
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/seaborn/widgets.py in &amp;lt;module&amp;gt;
      5 # Lots of different places that widgets could come from...
      6 try:
----&amp;gt; 7     from ipywidgets import interact, FloatSlider, IntSlider
      8 except ImportError:
      9     import warnings
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in &amp;lt;module&amp;gt;
     57     register_comm_target()
     58 
---&amp;gt; 59 _handle_ipython()
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in _handle_ipython()
     55     if ip is None:
     56         return
---&amp;gt; 57     register_comm_target()
     58 
     59 _handle_ipython()
&amp;nbsp;
/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"""
---&amp;gt; 47     comm_manager = get_comm_manager()
     48 
     49     comm_manager.register_target('jupyter.widget', Widget.handle_comm_opened)
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in get_comm_manager()
     31         ip = get_ipython()
     32 
---&amp;gt; 33         if ip is not None and ip.kernel is not None:
     34             return get_ipython().kernel.comm_manager
     35 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the code&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 12:04:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7299#M3203</guid>
      <dc:creator>abi-tosh</dc:creator>
      <dc:date>2023-03-22T12:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7300#M3204</link>
      <description>&lt;P&gt;@Lakshay Goel​&amp;nbsp;I ran into the same issue as abi-tosh and I don't think I am running any unit tests.  The thing that trips me up about this is that we had this working in other jobs and it is failing for us now.  It fails for us on &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from great_expectations.core import (&lt;/P&gt;&lt;P&gt;    ExpectationValidationResult,&lt;/P&gt;&lt;P&gt;    ExpectationSuiteValidationResult,&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have bugged several people at my company and we are unsure how to tackle this.  Please help.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error I am getting.  Very similar every time&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:34:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7300#M3204</guid>
      <dc:creator>TheSurestBlackE</dc:creator>
      <dc:date>2023-03-27T17:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7301#M3205</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;      2 from typing import Union, Dict, List
      3 
----&amp;gt; 4 from great_expectations.core.expectation_validation_result import ExpectationSuiteValidationResult, ExpectationValidationResult
      5 from great_expectations.dataset import SparkDFDataset
      6 from pyspark.sql import DataFrame, SparkSession
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/__init__.py in &amp;lt;module&amp;gt;
      4 __version__ = get_versions()["version"]  # isort:skip
      5 
----&amp;gt; 6 from great_expectations.data_context.migrator.cloud_migrator import CloudMigrator
      7 
      8 del get_versions  # isort:skip
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/data_context/__init__.py in &amp;lt;module&amp;gt;
----&amp;gt; 1 from great_expectations.data_context.data_context import (
      2     AbstractDataContext,
      3     BaseDataContext,
      4     CloudDataContext,[0m
      5     DataContext,
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/data_context/data_context/__init__.py in &amp;lt;module&amp;gt;
----&amp;gt; 1 from great_expectations.data_context.data_context.abstract_data_context import (
      2     AbstractDataContext,
      3 )
      4 from great_expectations.data_context.data_context.base_data_context import (
      5     BaseDataContext,
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/data_context/data_context/abstract_data_context.py in &amp;lt;module&amp;gt;
    116 from great_expectations.datasource.new_datasource import BaseDatasource, Datasource
    117 from great_expectations.profile.basic_dataset_profiler import BasicDatasetProfiler
--&amp;gt; 118 from great_expectations.rule_based_profiler.data_assistant.data_assistant_dispatcher import (
    119     DataAssistantDispatcher,
    120 )
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)[0;34m
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/rule_based_profiler/data_assistant/__init__.py in &amp;lt;module&amp;gt;
----&amp;gt; 1 from .data_assistant import DataAssistant
      2 from .onboarding_data_assistant import OnboardingDataAssistant
      3 from .volume_data_assistant import VolumeDataAssistant
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/rule_based_profiler/data_assistant/data_assistant.py in &amp;lt;module&amp;gt;
     20 )
     21 from great_expectations.rule_based_profiler.config import ParameterBuilderConfig
---&amp;gt; 22 from great_expectations.rule_based_profiler.data_assistant_result import (
     23     DataAssistantResult,
     24 )
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/rule_based_profiler/data_assistant_result/__init__.py in &amp;lt;module&amp;gt;
----&amp;gt; 1 from .data_assistant_result import DataAssistantResult
      2 from .onboarding_data_assistant_result import OnboardingDataAssistantResult
      3 from .volume_data_assistant_result import VolumeDataAssistantResult
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/great_expectations/rule_based_profiler/data_assistant_result/data_assistant_result.py in &amp;lt;module&amp;gt;
     21 
     22 import altair as alt
---&amp;gt; 23 import ipywidgets as widgets
     24 import numpy as np
     25 import pandas as pd
&amp;nbsp;
/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.
--&amp;gt; 167             original_result = python_builtin_import(name, globals, locals, fromlist, level)
    168 
    169             is_root_import = thread_local._nest_level == 1
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in &amp;lt;module&amp;gt;
     57     register_comm_target()
     58 
---&amp;gt; 59 _handle_ipython()
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in _handle_ipython()
     55     if ip is None:
     56         return
---&amp;gt; 57     register_comm_target()
     58 
     59 _handle_ipython()
&amp;nbsp;
/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"""
---&amp;gt; 47     comm_manager = get_comm_manager()
     48 
     49     comm_manager.register_target('jupyter.widget', Widget.handle_comm_opened)
&amp;nbsp;
/databricks/python/lib/python3.8/site-packages/ipywidgets/__init__.py in get_comm_manager()
     31         ip = get_ipython()
     32 
---&amp;gt; 33         if ip is not None and ip.kernel is not None:
     34             return get_ipython().kernel.comm_manager
     35 
&amp;nbsp;
AttributeError: 'IPythonShell' object has no attribute 'kernel'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:36:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7301#M3205</guid>
      <dc:creator>TheSurestBlackE</dc:creator>
      <dc:date>2023-03-27T17:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7302#M3206</link>
      <description>&lt;P&gt;Found it, great expectations released a new feature that put us in dependency hell.  0.16.3 makes life difficult for some people.  &lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:30:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7302#M3206</guid>
      <dc:creator>TheSurestBlackE</dc:creator>
      <dc:date>2023-03-28T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Attribute Error:  'IPythonShell' object has no attribute 'kernel'</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7303#M3207</link>
      <description>&lt;P&gt;Hi @Toshali Mohapatra​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 04:43:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-attribute-error-ipythonshell-object-has-no-attribute/m-p/7303#M3207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-30T04:43:54Z</dc:date>
    </item>
  </channel>
</rss>

