<?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: Docstrings from Custom Library not displaying in Notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4591357#M7617</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.&lt;/P&gt;
&lt;P&gt;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.&lt;BR /&gt;Thank you for your patience and look forward to hearing from you.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Mar 2025 18:24:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-03-01T18:24:20Z</dc:date>
    <item>
      <title>Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4423477#M7459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a custom library and the Def's have docstrings.&amp;nbsp; I noticed that they aren't being displayed from within the Fabric notebooks.&amp;nbsp; &amp;nbsp;Is there something that I need to do to activate them?&amp;nbsp; I didn't notice docstrings for the built-in libraries are available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 14:58:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4423477#M7459</guid>
      <dc:creator>kwenzelmms</dc:creator>
      <dc:date>2025-02-23T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4423514#M7461</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure docstrings use triple-quoted strings immediately following function/class declarations&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;def my_function(param):&lt;BR /&gt;"""Display this docstring in Fabric Notebooks&lt;BR /&gt;&lt;BR /&gt;Args:&lt;BR /&gt;param: Example parameter&lt;BR /&gt;"""&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Package libraries as `.whl` files with proper metadata in `setup.py`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create dedicated Fabric environment&lt;BR /&gt;2. Add custom library through UI:&lt;BR /&gt;• Workspace &amp;gt; New &amp;gt; Environment &amp;gt; Add from PyPI/upload WHL&lt;BR /&gt;3. Publish environment before notebook use&lt;BR /&gt;4. Select environment in notebook toolbar&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In notebook :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import importlib&lt;BR /&gt;importlib.reload(mylib)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this is helpful please accept the answer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 17:59:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4423514#M7461</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-23T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4424099#M7473</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are facing an issue with your&amp;nbsp;docstrings are not being displayed in Microsoft Fabric Notebooks when you try to access them. Even your built-in Pythion libraries are not displaying docstrings. As&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;has responded to your issue, please go through his response. If you are able to solve your issue then please mark the helpful reply as solution&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 11:02:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4424099#M7473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-24T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4591357#M7617</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.&lt;/P&gt;
&lt;P&gt;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.&lt;BR /&gt;Thank you for your patience and look forward to hearing from you.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 18:24:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4591357#M7617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-01T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4591477#M7618</link>
      <description>&lt;P&gt;I have tried the recommendation you mentioned and am still not seeing the docstrings.&amp;nbsp; Though I see them in VsCode, I want to build another local project where the module is referenced as a true library and not part of an existing project.&amp;nbsp; That way I can see whether the docstrings are being stripped from my library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm simply using&amp;nbsp;&lt;STRONG&gt;python -m build&lt;/STRONG&gt; to built it.&amp;nbsp; I know that won't strip docstrings away.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 22:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4591477#M7618</guid>
      <dc:creator>kwenzelmms</dc:creator>
      <dc:date>2025-03-01T22:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4603891#M7815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for going through the responses. Since you can see the docstrings in VS Code but not in Fabric, it’s likely an issue with how Fabric loads the library rather than the packaging process itself.&lt;/P&gt;
&lt;P&gt;You can follow few steps to&amp;nbsp;verify if docstrings are present. You can verify optimization flags in Fabric&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;as it might be running Python in optimized mode, which removes docstrings. Use this code:&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;"import sys&lt;BR /&gt;print(sys.flags.optimize)"&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;If it returns 1 or 2, Python is running in optimized mode, which removes docstrings.&amp;nbsp;If it returns 0 then docstrings should be available.&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;You can also run the following code inside your Fabric Notebook to verify if docstrings are present.&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;&lt;SPAN class=""&gt;"import my_custom_library&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="1207" data-end="1293"&gt;&lt;SPAN class=""&gt;print(my_custom_library.some_function.__doc__)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="1060" data-end="1158"&gt;If this returns "None", it confirms that docstrings are being stripped at runtime in Fabric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 19:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4603891#M7815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-10T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4611287#M7939</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 10:22:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4611287#M7939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-15T10:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Docstrings from Custom Library not displaying in Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4617969#M8088</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640154"&gt;@kwenzelmms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 10:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Docstrings-from-Custom-Library-not-displaying-in-Notebook/m-p/4617969#M8088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-20T10:42:25Z</dc:date>
    </item>
  </channel>
</rss>

