Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
pmscorca
Kudo Kingpin
Kudo Kingpin

Protecting or hiding the code of a notebook

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

1 ACCEPTED 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

View solution in original post

6 REPLIES 6
pmscorca
Kudo Kingpin
Kudo Kingpin

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

Lodha_Jaydeep
Solution Sage
Solution Sage

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:

  • Provide minimim workspace role according to user's need.
  • Keep notebook in the less privileged/restricted workspace.
  • Use Azure key vault for storing sensitive infro and call throgh the notebook instead hard coading them in a cell.

 

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.