Knowledge Base

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.0
2beautifulsoup4==4.8.0
3catboost==1.0.3
4findspark==1.4.2
5gensim==4.1.2
6holidays==0.11.3.1
7ipywidgets==7.6.3
8jupyter_client==6.1.12
9jupyter_core==4.7.1
10jupyter==1.0.0
11lightgbm==3.3.1
12matplotlib==3.3.4
13nbconvert==6.0.7
14nbformat==5.1.3
15nltk==3.6.1
16numpy==1.20.1
17openpyxl==3.0.9
18pandas==1.2.4
19plotly==4.1.0
20plotly==5.4.0
21py4j==0.10.9.3
22pymorphy2==0.9.1
23pymystem3==0.2.0
24pyod==0.9.5
25regex==2020.4.4
26requests==2.25.1
27scikit-learn==0.24.1
28scipy==1.4.1
29seaborn==0.11.1
30spacy==3.2.0
31statsmodels==0.10.1
32statsmodels==0.12.2
33xgboost==1.5.1
34xlrd==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 -U
2
3import 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.

Send Feedback
close
  • Bug
  • Improvement
  • Feature
Send Feedback
,