Forum Discussion
Root user access in synapse notebooks
Hi AdarshPanasri,
Do you mean you are try to install the library to the notebook environment root path and faced the permission requirement?
If that is the case, I don't thank you can directly use these high premissions commands.
For fabric notebook, you can try to use #pip command to install the library inline or directory attach them into the environments.
Here are the reference links.
Notebook magic commands:
Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft Learn
Inline library install:
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn
Library mange in fabric environment:
Library management in Fabric environments - Microsoft Fabric | Microsoft Learn
Regards,
Xiaoxin Sheng
Thanks for the response, but this is not what I was looking for, I want to install a linux package LibreOffice, I dont think this can be done using pip cmnds.
I am using the %%sh magic cmds to run the shell cmds but when trying to install the package It says you are not a root user.
My doubt is how do I get the rights be a super user. I tried with the Admin credentials for the workspace but still got the same error.
Any support is appreciated.
- lbendlin2 years agoSuper User
What do you plan to use LibreOffice for once it is installed? Read Excel files?
- AdarshPanasri2 years agoHelper I
I intend to use it to Interact with doc files. As per my research I was not able to find a way to read/get content from doc file without converting it to docx first. And using LibreOffice should solve this.
- Anonymous2 years agoNot applicable
HI AdarshPanasri,
I'd like to suggest you try to use python-docx library to instead, it also can integrate notebook with docx files:
python-docx — python-docx 1.1.2 documentation
Regards,
Xiaoxin Sheng