Forum Discussion
Docstrings from Custom Library not displaying in Notebook
- 1 year ago
Hello kwenzelmms
Ensure docstrings use triple-quoted strings immediately following function/class declarations
def my_function(param):
"""Display this docstring in Fabric Notebooks
Args:
param: Example parameter
"""
...Package libraries as `.whl` files with proper metadata in `setup.py`
Create dedicated Fabric environment
2. Add custom library through UI:
• Workspace > New > Environment > Add from PyPI/upload WHL
3. Publish environment before notebook use
4. Select environment in notebook toolbarIn notebook :
import importlib
importlib.reload(mylib)If this is helpful please accept the answer
Hi kwenzelmms,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like you are facing an issue with your 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 nilendraFabric 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
I would also take a moment to thank nilendraFabric, 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.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
- Anonymous1 year agoNot applicable
Hi kwenzelmms,
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.
Thank you.- Anonymous1 year agoNot applicable
Hi kwenzelmms,
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.
Thank you.