Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
in Fabric is it possible to hide or encrypt or obfuscate the code inside a notebook in order to safeguard the intellectual property?
Many thanks
Solved! Go to Solution.
Hi @pmscorca,
Yes as an alternative approach, you can create a proprietary python custom library and call it from the notebook. This helps to reduce direct exposure of the core code since notebook users will only see the function calls rather than the underlying code.
Currently, fabric does not provide a built in feature to hide or encrypt notebook code from the users who have access to the notebook.
Your submitted idea is valuable feedback for improving IP protection capabilities in fabric notebooks.
Thanks and regards,
Anjan Kumar Chippa
Hi,
as an alternative is it possible to create a proprietary Python custom library to call inside a notebook?
Thanks
Hi @pmscorca,
Yes as an alternative approach, you can create a proprietary python custom library and call it from the notebook. This helps to reduce direct exposure of the core code since notebook users will only see the function calls rather than the underlying code.
Currently, fabric does not provide a built in feature to hide or encrypt notebook code from the users who have access to the notebook.
Your submitted idea is valuable feedback for improving IP protection capabilities in fabric notebooks.
Thanks and regards,
Anjan Kumar Chippa
Hi @pmscorca,
As we haven’t heard back from you, we wanted to kindly follow up to check if your issue is resolved? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa
Hi @pmscorca,
Thanks for the message, There is not any pre-defined library/function which can be used to encrypt or obfuscate the code inside a notebook.
You can use follow some best practices as follows:
I hope this is the answer to your question. Please consdier as an accepted solution if it helps or give some kudos.
Hi, thanks for your reply but a stronger solution is needed.
I've submitted this idea Protecting the code inside a notebook
Please vote it, thanks
Hi @pmscorca,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @Lodha_Jaydeep for the prompt response.
Thank you for the response and confirming that you have raised this in the ideas forum. Thank you for being part of Microsoft Fabric Community.
Thanks and regards,
Anjan Kumar Chippa