container configuration for streamlit app

Solved!
ysaeed4
Level 2
container configuration for streamlit app

Dear Experts, 

I am having difficulties in starting Streamlit app. In the container configuration, as shown in the attached image, when I select None, it gives error "Unable to start run : No container config to run Code Studio on". 

However when I select container ai_exec gpu, it always say Pod is still missing. 

I do not want to run the app using gpu, it can be run with cpus but I am unable to select that option. 

Kind regards,

Yawar 

0 Kudos
2 Solutions
ysaeed4
Level 2
Author

Hi @JordanB ,

Thanks for your help. I have managed to start the streamlit app. I have another question with regards to creating virtual environment because after connecting to my GitHub repository with streamlit app code and requirements.txt, I create virtual environment and sync files with DSS but it always says "  ModuleNotFoundError: No module named 'tensorflow'". It seems like it does not install the modules at the correct path as required. 

Kind regards,

Yawar

View solution in original post

0 Kudos
JordanB
Dataiker

Hi @ysaeed4,

You will need to add a code environment block to your code studio template and rebuild the template (ref: https://knowledge.dataiku.com/latest/code/work-environment/tutorial-first-code-studio.html#configure...).

Unfortunately, it will not work to create a virtual environment directly from your code i.e. virtualenv/venv. 

Let me know if you have questions!

View solution in original post

0 Kudos
3 Replies
JordanB
Dataiker

Hi @ysaeed4,

You will need to select a container configuration for Code Studios/to run streamlit (to fulfill the requirement of running your Code Studio on a Kubernetes Cluster). Note, you can create a cluster node and container config for cpu usage (Administration > Settings > Containerized Execution). Please see the following tutorial for requirements and setup guidance: https://knowledge.dataiku.com/latest/code/work-environment/tutorial-first-code-studio.html

 

0 Kudos
ysaeed4
Level 2
Author

Hi @JordanB ,

Thanks for your help. I have managed to start the streamlit app. I have another question with regards to creating virtual environment because after connecting to my GitHub repository with streamlit app code and requirements.txt, I create virtual environment and sync files with DSS but it always says "  ModuleNotFoundError: No module named 'tensorflow'". It seems like it does not install the modules at the correct path as required. 

Kind regards,

Yawar

0 Kudos
JordanB
Dataiker

Hi @ysaeed4,

You will need to add a code environment block to your code studio template and rebuild the template (ref: https://knowledge.dataiku.com/latest/code/work-environment/tutorial-first-code-studio.html#configure...).

Unfortunately, it will not work to create a virtual environment directly from your code i.e. virtualenv/venv. 

Let me know if you have questions!

0 Kudos