Install new package in Python notebook
Execute this code recipe to install a new Python package in your currently used environment. This recipe assumes that you are using conda for managing your Python environment. MLJAR Studio uses conda for managing Python environment.
Please note that MLJAR Studio automatically install and import packages for you when you are using recipes. However, there might be situation that you would like to write a custom Python code and you will need to import a new package. In this situation, please isntall a new package with this recipe.
Interactive recipe
You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.
Python code
# Python code will be here
Code explanation
Install new python package in your current environment using conda. You can specify version of the package after its name.
Python cookbook
Code recipes from Python cookbook.
- Display Python version
- Install Package
- Get current time
- Get working directory
- Get environment variable
- Add .env variable
- Load secrets from .env
- Random integer
- Time delay
- Check if file exists
- List files
- Read file
- Write to file
- Append to file
- Delete file
- Copy file
- Delete directory
- Read JSON from file
- Write JSON to file
- Pretty print JSON
- « Previous
- Display Python version
- Next »
- Get current time