0

I'm working on Datalab and I need specific versions of plotly and scikit-learn. I followed the docs and modified /content/datalab/.config/startup.sh which is now as follows:

pip install plotly==4.1.0
pip install scikit-learn==0.21.3

If I remove the second line (scikit-learn) I'm able to connect to datalab but the required version of plotly is not installed.

Alessandro Gaballo
  • 708
  • 3
  • 13
  • 28
  • Have you tried running the following ```%%bash echo "pip install plotly==4.1.0" >> /content/datalab/.config/startup.sh echo "pip install scikit-learn==0.21.3" >> /content/datalab/.config/startup.sh cat /content/datalab/.config/startup.sh``` in a cell and then restarting the Datalab instance as explained in the [documentation](https://cloud.google.com/datalab/docs/how-to/adding-libraries#adding_python_libraries_to_a_cloud_datalab_instance)? – bhito Sep 13 '19 at 11:12
  • @bhito yes, but the procedure to restart the server didn't work so I manually stopped and restarted the instance – Alessandro Gaballo Sep 13 '19 at 11:58

0 Answers0