Python Interpreter

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 pip.


!pip install [packages]

for example

!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.

Manage Python Environment

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

%python.conda info

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

%python.conda deactivate

List installed package

%python.conda list

Install packages (see previous section to install packages via pip)

%python.conda install [PACKAGE1 PACKAGE2 ...]

# or if you want to specify env name
%python.conda install -n [ENV_NAME] [PACKAGE1 PACKAGE2 ...]

Uninstall packages

%python.conda uninstall [PACKAGE1 PACKAGE2 ...]


%python.conda help

IPython support

You can use IPython commands with the default python interpreter in ZEPL.


# !ls Run a shell command.
# Install additional packages
!pip install keras

# object? Details about the object

# Time execution of a Python statement or expression
%timeit range(1000)