Python is general-purpose programming language which is getting increasingly popular among data analysts and data scientists due to the strength of its core libraries, data wrangling.
ZEPL provides python interpreter with popular python libraries pre-installed:
Install additional libraries using
%python !pip install [packages]
%python !pip install -q keras import keras
pip command install packages in current environment. When other environment is activated,
pip command install packages in the particular environment activated. Check next section to create and switch multiple python environments.
If you need different environment other than the default environment or external packages, you can use conda interpreter bundled with python interpreter. Conda is open source package and environment management system helps easy package installation and environment switch.
Get conda information
List your environments
%python.conda env list
Create an environment
%python.conda create --name [ENV_NAME] # or if you want to specify python version (e.g 3.6) %python.conda create --name [ENV_NAME] python=3.6
Activate the environment
%python.conda activate [ENV_NAME]
Deactivate the environment
List installed package
Install packages (see previous section to install packages via
%python.conda install [PACKAGE1 PACKAGE2 ...] # or if you want to specify env name %python.conda install -n [ENV_NAME] [PACKAGE1 PACKAGE2 ...]
%python.conda uninstall [PACKAGE1 PACKAGE2 ...]
You can use IPython commands with the default python interpreter in ZEPL.
%python # !ls Run a shell command. # Install additional packages !pip install keras # object? Details about the object help? # Time execution of a Python statement or expression %timeit range(1000)