Forum Discussion
Protecting or hiding the code of a notebook
- 3 months ago
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,
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
- v-achippa3 months ago
Community Support
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