Installing Libraries on the Platform
How to add a library that isn't on the platform
By default, the following libraries are available on the platform (the number after == tells you the version):
1attrs==20.3.02beautifulsoup4==4.8.03catboost==1.0.34findspark==1.4.25gensim==4.1.26holidays==0.11.3.17ipywidgets==7.6.38jupyter_client==6.1.129jupyter_core==4.7.110jupyter==1.0.011lightgbm==3.3.112matplotlib==3.3.413nbconvert==6.0.714nbformat==5.1.315nltk==3.6.116numpy==1.20.117openpyxl==3.0.918pandas==1.2.419plotly==4.1.020plotly==5.4.021py4j==0.10.9.322pymorphy2==0.9.123pymystem3==0.2.024pyod==0.9.525regex==2020.4.426requests==2.25.127scikit-learn==0.24.128scipy==1.4.129seaborn==0.11.130spacy==3.2.031statsmodels==0.10.132statsmodels==0.12.233xgboost==1.5.134xlrd==2.0.1
If need to use other libraries in your work, add a command to install libraries to your Notebook. If you don't insert this command, the project might not work for your reviewer.
To install a library, add the following line of code in the first cell of your project:
1!pip install LIBRARY_NAME -U
For instance, to install the my_super_lib
library, write the following:
1!pip install my_super_lib -U
The -U
parameter means that the latest version of the library will be installed. If this library has already been installed on your computer, it will be updated to the latest version.
Installing libraries in Jupyter is easy, but we recommend that you not overuse additional libraries. Try to complete your project using the libraries present in the default TripleTen environment.
You still need to import libraries after installing them.
1!pip install my_super_lib -U23import my_super_lib
NOTE!
When you are installing and updating the scikit-learn
library, it's recommended to write its full name:
1!pip install -U scikit-learn
When you are importing the scikit-learn
library, it's recommended to use its short name sklearn
due to specifications of the library:
1import sklearn
NOTE!
If you installed a library for your project, don't remove the code for installing it once the cell runs. Otherwise, the reviewer won't have it installed and won't be able to check your project.