Announcing the winners & finalists of the Dataiku Frontrunner Awards 2021! Read their inspiring stories

Unable to install 3rd party python packages on Dataiku jupyter notebook

Solved!
epsi95
Level 2
Unable to install 3rd party python packages on Dataiku jupyter notebook

I just started exploring Dataiku and wanted to install `ipympl` on the jupyter notebook. But it is not working.

Seems, the notebook is using virtual environment `

/opt/dataiku/pyenv

 I tried installing it like--

Capture.PNG

But you can see there is a permission error, so I tried --

Capture2.PNG

Which also resulted in an error, I have experience on Jupyter notebook on IBM Watson studio but never faced issues like this, can anyone guide me on how to do that, I also did not find any good documentation, I tried to follow this doc but can't find where the DATA_DIR is since `! echo $DATA_DIR` gives null string. Regarding recommended method, I can't find the administration tab anywhere on the Dataiku portal. Please guide me in the right direction. Thanks.

Capture3.PNG

0 Kudos
1 Solution
sergeyd
Dataiker
Dataiker

Dataiku Online indeed has no possibility to create code envs (no Administration tab). You will need to install DSS as VM locally to have that possibility. 

View solution in original post

4 Replies
sergeyd
Dataiker
Dataiker

Hi @epsi95 

Yes, by default Jupyter notebooks use built-in code env (DATA_DIR/pyenv). If you need to install python packages, the recommended way is to create a dedicated virtual code env and install packages there:

https://doc.dataiku.com/dss/latest/code-envs/operations-python.html

For the administration page click on the "apps" icon:

Screenshot 2021-09-22 at 08.07.40.png 

When you create a code env and install the required packages, you can change the kernel in the notebook to this new code env: 

Screenshot 2021-09-22 at 08.12.37.png

Hope you will find this information useful. 

epsi95
Level 2
Author

Hi @sergeyd ,

 

Oh okay, thanks for the information. But I can't see the administration tab. I am using 14 days trial though.

Screenshot (10).png

0 Kudos
sergeyd
Dataiker
Dataiker

Dataiku Online indeed has no possibility to create code envs (no Administration tab). You will need to install DSS as VM locally to have that possibility. 

View solution in original post

CoreyS
Community Manager
Community Manager

Hi @epsi95 and welcome to the Dataiku Community. In addition to Sergey's solution (thank you for accepting it as a solution btw) here is a resource you may find helpful if you haven't accessed it already: Work With Python on Dataiku Online in our Knowledge Base.

I hope this helps!

 

Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as ‘Accepted Solution’ to help others like you!
0 Kudos
A banner prompting to get Dataiku DSS