<?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: Using custom python library in notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4249764#M4697</link>
    <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Can you please share some more detail information about this issue and sameple whl file ? They should help us clarify your scenario and test to troubleshoot.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;In addition, have you tried to use %pip list instead of native jupyter&amp;nbsp;pip&amp;nbsp;command to list the installed libraries?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 01:23:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-21T01:23:00Z</dc:date>
    <item>
      <title>Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4249531#M4692</link>
      <description>&lt;P&gt;I've create a whl file containing a python function and uploaded it as a custom library into my fabric environment. I've succesfully deployed the library and now I would expect the library to be available to import during a notebook session.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Broeks_0-1729419596863.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1185892i8FF0997707DE84FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Broeks_0-1729419596863.png" alt="Broeks_0-1729419596863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this is not the case. When I run the pip list, it's not shown in the list and I can also not call the library through the import function:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Broeks_1-1729419702676.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1185893i66EC5186582CB916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Broeks_1-1729419702676.png" alt="Broeks_1-1729419702676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I install the package from the whl file in the environment resource, the package does work. However I would expect to just add my whl file to the environment as a custom library and then be able to use the packages inside. Did I miss something or do i need the use the custom library in another way?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 10:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4249531#M4692</guid>
      <dc:creator>Broeks</dc:creator>
      <dc:date>2024-10-20T10:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4249764#M4697</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Can you please share some more detail information about this issue and sameple whl file ? They should help us clarify your scenario and test to troubleshoot.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;In addition, have you tried to use %pip list instead of native jupyter&amp;nbsp;pip&amp;nbsp;command to list the installed libraries?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 01:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4249764#M4697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-21T01:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4250715#M4706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to see your library in workspace settings of Spark?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Srisakthi_0-1729510890514.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186423iE647F1A5D58EA69E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Srisakthi_0-1729510890514.png" alt="Srisakthi_0-1729510890514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 11:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4250715#M4706</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2024-10-21T11:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4251223#M4714</link>
      <description>&lt;P&gt;Thanks for your responses.&lt;BR /&gt;To answer&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/782160"&gt;@Srisakthi&lt;/a&gt;, yes the library is present:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Broeks_0-1729529002294.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186580i39293F9F167A43DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Broeks_0-1729529002294.png" alt="Broeks_0-1729529002294.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And to&amp;nbsp;@Anonymous&lt;/a&gt;, i've tried the %pip list and my package isn't present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional info i can give is:&lt;/P&gt;&lt;P&gt;- I've created the package my self, based on een small set of python files. However, since the package does work when i install it through a notebook cell, I''ve concluded that the package isn't the issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Broeks_1-1729529718432.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186587i0F1465106E3358C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Broeks_1-1729529718432.png" alt="Broeks_1-1729529718432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is the structure and one of the functions is the package:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Broeks_2-1729529797571.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186588iD220F7DC708D07C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Broeks_2-1729529797571.png" alt="Broeks_2-1729529797571.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is the code i've used for the creation of the package:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from setuptools import find_packages, setup

setup(
    name='idpdemo',
    version='0.0.1',
    description='demo_description',
    author='Broeks',
    packages=find_packages(include=['idp']),
    install_requires=[],  # Add your dependencies here
    extras_require={
        'dev': ['pytest']  # Test dependencies go here
    }
)&lt;/LI-CODE&gt;&lt;P&gt;And I've tried to import the function through the following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from idp import check_dataframe_for_duplicate_keys&lt;/LI-CODE&gt;&lt;P&gt;If you need additional information, let me known.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 16:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4251223#M4714</guid>
      <dc:creator>Broeks</dc:creator>
      <dc:date>2024-10-21T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4251950#M4722</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest text with other whl format custom libraries to confirm if this issue only applies on your side.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 06:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4251950#M4722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-22T06:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4252124#M4725</link>
      <description>&lt;P&gt;Yes, will do. I'm quitte busy these days, so a response might take a few days. But thanks for the help so far!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4252124#M4725</guid>
      <dc:creator>Broeks</dc:creator>
      <dc:date>2024-10-22T07:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4257666#M4795</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sure, you can free feel to post here if you have any updates.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 08:34:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4257666#M4795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-25T08:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4729875#M10090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781658"&gt;@Broeks&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you manage to solve this problem? I'm at the point in a project where writing a custom library maybe a better option, rather than executing notebook from within another notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jeff Jones&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 09:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4729875#M10090</guid>
      <dc:creator>jj44</dc:creator>
      <dc:date>2025-06-12T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730145#M10095</link>
      <description>&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes i was able to fix the issue. My package was not correct.&lt;/P&gt;&lt;P&gt;Now I'm able to upload and publish a whl file through the fabric api.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/environment/spark-libraries" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/environment/spark-libraries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730145#M10095</guid>
      <dc:creator>Broeks</dc:creator>
      <dc:date>2025-06-12T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730290#M10104</link>
      <description>&lt;P&gt;Thanks, good to hear.&lt;/P&gt;&lt;P&gt;I might put some time in and see if I can migrate my code to a library then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jeff Jones&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730290#M10104</guid>
      <dc:creator>jj44</dc:creator>
      <dc:date>2025-06-12T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom python library in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730401#M10108</link>
      <description>&lt;P&gt;Yes, do you have any idea on how you are going to develop your python/pysparkcode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to use the spark job definition integration within vscode to develop against the fabric kernel. However, debugging doesn't work as expected.&lt;/P&gt;&lt;P&gt;&lt;A href="https://marketplace.visualstudio.com/items?itemName=SynapseVSCode.synapse#:~:text=The%20Fabric%20Data%20Engineering%20extension%20%28Previously%20Synapse%20VS,extension%20is%20available%20from%20the%20Visual%20Studio%20Marketplace" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=SynapseVSCode.synapse#:~:text=The%20Fabric%20Data%20Engineering%20extension%20%28Previously%20Synapse%20VS,extension%20is%20available%20from%20the%20Visual%20Studio%20Marketplace&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm wondering whats your approach?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 14:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-custom-python-library-in-notebook/m-p/4730401#M10108</guid>
      <dc:creator>Broeks</dc:creator>
      <dc:date>2025-06-12T14:08:27Z</dc:date>
    </item>
  </channel>
</rss>

