Libraries and scripts for notebooks
Watson Studio includes many preinstalled libraries for Python and R in its runtime environments :
- Spark libraries, such as, SparkSQL, Spark Streaming, and Spark MLlib
- Open source visualization libraries, such as GraphX
- PixieDust helper library
- Brunel visualization library
- SPSS model visualization library
- Deep learning libraries
- SPSS predictive analytics algorithms
- Decision Optimization
- Python project-lib library
- R project-lib library
If you want to work with Scala, you should use a Spark environment.
List installed libraries
To see the list of installed libraries in your Watson Studio environment:
- Click your project’s Environments tab.
- From the Environment definitions list, click the environment definition you want to use. This opens the environment definition details page where you can see the installed libraries.
To see the list of installed libraries from a notebook, run the appropriate command from a notebook cell:
!pip list --isolated
Import an installed library
To import an installed library into your notebook, run the appropriate command from a notebook cell with the library name:
You can write a script that includes multiple classes and methods and then import the script into your notebook. Watch this video to see how to use the Apache Spark Machine Learning Library.