Libraries

Third-Party Libraries

Introduction

The Lean CLI supports using dozens of open source packages in your algorithms. These packages are reviewed by our security team, and when approved, can be used in backtesting, live trading, and research. To use these packages in your algorithm, you will need to add the relevant usingimport statement at the top of your code file.

By default, only the libraries in the official LEAN Docker images can be referenced in your algorithms. However, the CLI also supports using custom libraries. This makes it possible to use a library that is not available in the official LEAN Docker images or to use a newer version of an existing library.

Supported Libraries for AMD64 Systems

The CLI supports many of the most popular C# and Python open-source libraries. On AMD64-based systems, the CLI supports the same C# and Python libraries as are supported on QuantConnect. If you're unsure about the architecture of your system, it's most likely AMD64. The following libraries are available on AMD64-based systems:

# Name                                Version
Accord                                3.6.0
Accord.Audio                          3.6.0
Accord.Fuzzy                          3.6.0
Accord.MachineLearning                3.6.0
Accord.MachineLearning.GPL            3.6.0
Accord.Math                           3.6.0
Accord.Statistics                     3.6.0
Catalyst                              1.0.16767
Catalyst.Models.English               1.0.17127
CNTK.CPUOnly                          2.8.0-rc0.dev20200201
Deedle                                2.1.0
DynamicInterop                        0.9.1
LibTopoART                            0.94.0
MathNet.Filtering                     0.7.0
MathNet.Filtering.Kalman              0.7.0
MathNet.Numerics                      4.15.0
MathNet.Spatial                       0.6.0
Microsoft.ML                          1.5.5
Newtonsoft.Json                       12.0.3
NodaTime                              3.0.5
NumSharp                              0.30.0
QLNet                                 1.11.3
QuantConnect.pythonnet                2.0.10
R.Net                                 1.9.0
RestSharp                             106.12.0
SharpLearning.AdaBoost                0.31.8
SharpLearning.Common.Interfaces       0.31.8
SharpLearning.Containers              0.31.8
SharpLearning.CrossValidation         0.31.8
SharpLearning.DecisionTrees           0.31.8
SharpLearning.Ensemble                0.31.8
SharpLearning.FeatureTransformations  0.31.8
SharpLearning.GradientBoost           0.31.8
SharpLearning.InputOutput             0.31.8
SharpLearning.Metrics                 0.31.8
SharpLearning.Neural                  0.31.8
SharpLearning.Optimization            0.31.8
SharpLearning.RandomForest            0.31.8
SharpNeatLib                          2.4.4
System.Reflection.Emit.Lightweight    4.7.0
# Name                    Version
_libgcc_mutex            0.1
absl-py                  1.0.0
alembic                  1.7.5
algopy                   0.5.7
appdirs                  1.4.4
arch                     4.14
argon2-cffi              21.3.0
argon2-cffi-bindings     21.2.0
arviz                    0.9.0
ase                      3.22.1
asn1crypto               1.4.0
astor                    0.8.1
astropy                  4.0.1.post1
async-generator          1.10
atari-py                 0.2.9
attrs                    21.3.0
auto-ks                  0.1
autograd                 1.3
autopage                 0.4.0
backcall                 0.2.0
backports-zoneinfo       0.2.1
bayesian-optimization    1.2.0
beautifulsoup4           4.9.0
binutils_impl_linux-64   2.35.1
binutils_linux-64        2.35
blas                     1.0
blaze                    0.11.3
bleach                   4.1.0
blis                     0.7.5
blosc                    1.20.1
bokeh                    2.3.2
boto3                    1.20.26
botocore                 1.23.26
bottleneck               1.3.2
brotlipy                 0.7.0
bzip2                    1.0.8
c-ares                   1.17.1
ca-certificates          2021.10.26
cached-property          1.5.2
catalogue                2.0.6
catboost                 0.23.2
certifi                  2021.5.30
cffi                     1.14.0
cftime                   1.5.1.1
chardet                  4.0.0
charset-normalizer       2.0.4
click                    8.0.3
cliff                    3.10.0
cloudpickle              1.3.0
cmaes                    0.8.2
cmd2                     2.3.3
cmdstanpy                0.4.0
cntk                     2.7
colorlog                 6.6.0
colorlover               0.3.0
conda                    4.10.3
conda-env                2.6.0
conda-package-handling   1.7.3
contextvars              2.4
convertdate              2.3.2
copulae                  0.3.1
copulalib                1.1.0
copulas                  0.3.3
coverage                 5.5
creme                    0.5.1
cryptography             35.0.0
cudatoolkit              10.2.89
cufflinks                0.17.3
cvxopt                   1.2.0
cvxpy                    1.1.15
cycler                   0.11.0
cymem                    2.0.6
cython                   0.29.17
cytoolz                  0.11.0
dask                     2021.3.0
dask-core                2021.3.0
dataclasses              0.8
datashape                0.5.4
deap                     1.3.1
decorator                4.4.2
defusedxml               0.7.1
deprecated               1.2.13
dgl                      0.6.1
dill                     0.3.1.1
distributed              2.20.0
docutils                 0.14
dtw-python               1.0.5
dx                       0.1.2
ecos                     2.0.8
entrypoints              0.3
ephem                    3.7.7.1
fastai                   1.0.61
fastai2                  0.0.17
fastcore                 1.3.27
fastprogress             1.0.0
fasttext                 0.9.2
fbprophet                0.6
feature-selector         1.0.0
featuretools             0.14.0
filelock                 3.4.1
findiff                  0.8.5
flask                    1.1.2
flask-cors               3.0.10
flatbuffers              2.0
freetype                 2.10.4
frozendict               2.1.3
fsspec                   2021.11.1
future                   0.18.2
gast                     0.2.2
gcc_impl_linux-64        7.5.0
gcc_linux-64             7.5.0
gensim                   3.8.0
gluonts                  0.4.3
google-pasta             0.2.0
googledrivedownloader    0.4
gplearn                  0.4.1
greenlet                 1.1.2
grpcio                   1.43.0
gxx_impl_linux-64        7.5.0
gxx_linux-64             7.5.0
gym                      0.17.2
h2o                      3.34.0.7
h5py                     3.1.0
hdf5                     1.10.4
heapdict                 1.0.1
hijri-converter          2.2.2
hmmlearn                 0.2.3
holidays                 0.9.12
hopcroftkarp             1.2.5
hyperopt                 0.2.5
idna                     3.3
immutables               0.16
importlib-metadata       4.8.3
importlib-resources      5.4.0
iniconfig                1.1.1
intel-openmp             2021.4.0
ipykernel                5.5.6
ipython                  7.16.2
ipython-genutils         0.2.0
ipywidgets               7.5.1
isodate                  0.6.1
itsdangerous             2.0.1
jax                      0.1.68
jaxlib                   0.1.69
jedi                     0.17.2
jinja2                   3.0.3
jmespath                 0.10.0
joblib                   1.1.0
jpeg                     9d
json5                    0.9.6
jsonschema               3.2.0
jupyter-client           7.1.0
jupyter-core             4.9.1
jupyterlab               2.1.2
jupyterlab-pygments      0.1.2
jupyterlab-server        1.2.0
keras                    2.3.1
keras-applications       1.0.8
keras-preprocessing      1.1.2
keras-rl                 0.4.2
kernel-headers_linux-64  2.6.32
kiwisolver               1.3.1
kmapper                  2.0.1
korean_lunar_calendar    0.2.1
langcodes                3.3.0
lcms2                    2.11
ld_impl_linux-64         2.35.1
libedit                  3.1.20170329
libffi                   3.2.1
libgcc-devel_linux-64    7.5.0
libgcc-ng                9.1.0
libgfortran-ng           7.5.0
libgfortran4             7.5.0
libgomp                  9.3.0
libllvm10                10.0.1
libpng                   1.6.37
libprotobuf              3.17.2
libstdcxx-devel_linux-64 7.5.0
libstdcxx-ng             8.2.0
libtiff                  4.1.0
lightgbm                 2.3.0
littleutils              0.2.2
llvmlite                 0.36.0
locket                   0.2.1
lunarcalendar            0.0.9
lxml                     4.5.0
lz4-c                    1.9.2
lzo                      2.10
mako                     1.1.6
markdown                 3.3.6
markupsafe               2.0.1
matplotlib               3.2.1
mistune                  0.8.4
mkl                      2020.2
mkl-service              2.3.0
mkl_fft                  1.3.0
mkl_random               1.1.1
mmh3                     2.5.1
mock                     4.0.3
mpi                      1.0
mpi4py                   3.0.3
mplfinance               0.12.4a0
mpmath                   1.2.1
msgpack                  1.0.0
msgpack-numpy            0.4.7.1
msgpack-python           1.0.2
multipledispatch         0.6.0
murmurhash               1.0.6
mxnet                    1.6.0
nbclient                 0.5.9
nbconvert                6.0.7
nbformat                 5.1.3
ncurses                  6.3
nest-asyncio             1.5.4
netcdf4                  1.5.8
networkx                 2.5.1
neural-tangents          0.2.1
ninja                    1.10.2
nltk                     3.4.5
notebook                 6.4.6
numba                    0.46.0
numdifftools             0.9.40
numexpr                  2.8.1
numpy                    1.18.1
numpy-base               1.18.1
nvidia-ml-py3            7.352.0
oauthlib                 3.1.1
odo                      0+unknown
olefile                  0.46
opencv-python            4.5.4.60
openmpi                  4.0.3
openssl                  1.1.1l
opt_einsum               3.3.0
optuna                   2.3.0
osqp                     0.6.2.post1
outdated                 0.2.1
packaging                21.3
pandas                   0.25.3
pandas-flavor            0.2.0
pandas-market-calendars  1.7
pandocfilters            1.5.0
parso                    0.7.1
partd                    1.2.0
pathy                    0.6.1
patsy                    0.5.2
pbr                      5.8.0
pennylane                0.9.0
persim                   0.3.1
pexpect                  4.8.0
pickleshare              0.7.5
pillow                   8.0.1
pingouin                 0.3.8
pip                      21.2.2
plotly                   4.7.1
pluggy                   1.0.0
pomegranate              0.11.1
ppscore                  0.0.2
preshed                  3.0.6
prettytable              2.5.0
prometheus-client        0.12.0
prompt-toolkit           3.0.24
property-cached          1.6.4
protobuf                 3.19.1
psutil                   5.8.0
ptvsd                    4.3.2
ptyprocess               0.7.0
pulp                     1.6.8
py                       1.11.0
pyaml                    21.10.1
pybind11                 2.9.0
pycosat                  0.6.3
pycparser                2.21
pydantic                 1.8.2
pydevd-pycharm           201.8538.36
pyflux                   0.4.15
pyglet                   1.5.0
pygments                 2.10.0
pykalman                 0.9.5
pymc3                    3.8
pymeeus                  0.5.10
pyopenssl                21.0.0
pyparsing                3.0.6
pyperclip                1.8.2
pyportfolioopt           1.2.2
pyramid-arima            0.9.0
pyrb                     1.0.1
pyro-api                 0.1.2
pyro-ppl                 1.3.1
pyrsistent               0.18.0
pysocks                  1.7.1
pystan                   2.17.1.0
pytables                 3.6.1
pytest                   6.2.5
python                   3.6.8
python-dateutil          2.8.0
python-graphviz          0.8.4
python-louvain           0.15
python_abi               3.6
pytorch                  1.5.0
pytz                     2021.3
pytz-deprecation-shim    0.1.0.post0
pywavelets               1.1.1
pyyaml                   6.0
pyzmq                    22.3.0
qdldl                    0.1.5.post0
quadprog                 0.1.11
quantecon                0.4.8
quantlib                 1.24
quantlib-python          1.18
rauth                    0.7.3
ray                      1.9.1
rdflib                   5.0.0
readline                 7.0
redis                    4.1.0
requests                 2.26.0
requests-oauthlib        1.3.0
retrying                 1.3.3
ripser                   0.6.1
riskparityportfolio      0.2
rpy2                     3.3.6
ruamel_yaml              0.15.100
ruptures                 1.1.3
scikit-learn             0.23.2
scikit-learn-extra       0.2.0
scikit-multiflow         0.4.1
scikit-optimize          0.7.4
scikit-posthocs          0.6.7
scikit-tda               0.0.3
scipy                    1.5.4
scs                      3.0.0
sdeint                   0.2.1
seaborn                  0.11.0
semantic-version         2.6.0
send2trash               1.8.0
setuptools               58.0.4
setuptools-git           1.2
simpy                    4.0.1
six                      1.16.0
sklearn-contrib-py-earth 0.1.0
sklearn-json             0.1.0
sktime                   0.3.0
sktime-dl                0.1.0
smart-open               5.2.1
sortedcontainers         2.4.0
soupsieve                2.3.1
spacy                    3.2.1
spacy-legacy             3.0.8
spacy-loggers            1.0.1
sqlalchemy               1.4.29
sqlite                   3.26.0
srsly                    2.4.2
ssm                      0.0.1
stable-baselines         2.10.0
statistics               1.0.3.5
statsmodels              0.11.1
stevedore                3.5.0
sympy                    1.9
sysroot_linux-64         2.12
ta                       0.5.25
ta-lib                   0.4.18
tabulate                 0.8.9
tadasets                 0.0.4
tbb                      2021.4.0
tblib                    1.7.0
tensorboard              1.15.0
tensorflow               1.15.2
tensorflow-base          1.15.0
tensorflow-estimator     1.15.1
tensorforce              0.5.5
termcolor                1.1.0
terminado                0.12.1
testpath                 0.5.0
theano                   1.0.4
thinc                    8.0.13
threadpoolctl            3.0.0
tigramite                4.1.0
tk                       8.6.11
toml                     0.10.2
toolz                    0.11.2
torch                    1.10.1
torch-cluster            1.5.7
torch-geometric          1.7.0
torch-scatter            2.0.5
torch-sparse             0.6.7
torch-spline-conv        1.2.0
torchvision              0.11.2
tornado                  6.1
tqdm                     4.62.3
trading-calendars        2.1.1
traitlets                4.3.3
tsfresh                  0.15.1
tslearn                  0.3.1
tweepy                   3.8.0
typer                    0.4.0
typing-extensions        3.10.0.2
typing_extensions        3.10.0.2
tzdata                   2021.5
tzlocal                  4.1
ujson                    1.35
umap-learn               0.4.3
urllib3                  1.26.7
wasabi                   0.9.0
wcwidth                  0.2.5
webencodings             0.5.1
werkzeug                 2.0.2
wheel                    0.37.0
widgetsnbextension       3.5.2
wrapt                    1.12.1
xarray                   0.15.1
xgboost                  1.1.0
xz                       5.2.5
yaml                     0.2.5
zict                     2.0.0
zipp                     3.6.0
zlib                     1.2.11
zstd                     1.4.5

Supported Libraries for ARM64 Systems

On ARM64-based systems, the list of available libraries is a bit shorter because ARM64 is not as well supported as AMD64. The following libraries are available on ARM64-based systems:

// Name                                    Version
Accord                                     3.5.0
Accord.Fuzzy                               3.5.0
Accord.MachineLearning                     3.5.0
Accord.Math                                3.5.0
Accord.Math.Core                           3.5.0
Accord.Statistics                          3.5.0
AsyncIO                                    0.1.26.0
CloneExtensions                            1.3.0
CoinAPI.WebSocket.V1                       1.6.0
Common.Logging                             3.4.1
Common.Logging.Core                        3.4.1
CSharpAPI                                  1.0.0.0
CsvHelper                                  19.0.0
DotNetZip                                  1.13.3.506
DynamicInterop                             0.9.0
Fasterflect                                3.0.0.0
FSharp.Core                                4.5.0.0
ICSharpCode.SharpZipLib                    1.2.0
IQFeed.CSharpApiClient                     2.5.1
LaunchDarkly.EventSource                   3.3.2
MathNet.Numerics                           4.15.0
McMaster.Extensions.CommandLineUtils       2.6.0
Microsoft.IO.RecyclableMemoryStream        1.3.5.0
Microsoft.Win32.SystemEvents               3.1.0
NetMQ                                      4.0.0.1
Newtonsoft.Json                            12.0.3
NodaTime                                   3.0.5
protobuf-net                               3.0.29
protobuf-net.Core                          3.0.29
Python.Runtime                             2.0.1.0
QLNet                                      1.11.3
QuantConnect.Algorithm                     2.5.0.0
QuantConnect.Algorithm.CSharp              2.5.0.0
QuantConnect.Algorithm.Framework           2.5.0.0
QuantConnect.AlgorithmFactory              2.5.0.0
QuantConnect.Api                           2.5.0.0
QuantConnect.Brokerages                    2.5.0.0
QuantConnect.Common                        2.5.0.0
QuantConnect.Compression                   2.5.0.0
QuantConnect.Configuration                 2.5.0.0
QuantConnect.IBAutomater.exe               2.0.17
QuantConnect.Indicators                    2.5.0.0
QuantConnect.Lean.Engine                   2.5.0.0
QuantConnect.Lean.Launcher.exe             2.5.0.0
QuantConnect.Logging                       2.5.0.0
QuantConnect.Messaging                     2.5.0.0
QuantConnect.Queues                        2.5.0.0
QuantConnect.Research                      2.5.0.0
QuantConnect.ToolBox.exe                   2.5.0.0
RDotNet                                    1.9.0
RestSharp                                  106.6.10
SuperSocket.ClientEngine                   0.10.0.0
System.ComponentModel.Composition          5.0.0
System.Configuration.ConfigurationManager  3.1.0
System.Drawing.Common                      4.6.26919.02
System.Private.ServiceModel                3.1.0
System.Security.Cryptography.Pkcs          4.6.26515.06
System.Security.Cryptography.ProtectedData 3.1.0
System.Security.Cryptography.Xml           4.6.26515.06
System.Security.Permissions                3.1.0
System.ServiceModel                        3.1.0
System.ServiceModel.Primitives             3.1.0
System.Windows.Extensions                  3.1.0
Utf8Json                                   1.3.7.0
WebSocket4Net                              0.15.2.11
# Name                    Version                   Build  Channel
_openmp_mutex             4.5                       1_gnu    conda-forge
absl-py                   0.12.0                   pypi_0    pypi
alembic                   1.6.2                    pypi_0    pypi
appdirs                   1.4.4                    pypi_0    pypi
argon2-cffi               20.1.0           py36h269c3a8_2    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     21.1.0             pyhd8ed1ab_0    conda-forge
auto-ks                   0.1                      pypi_0    pypi
autograd                  1.3                      pypi_0    pypi
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
bayesian-optimization     1.2.0                    pypi_0    pypi
beautifulsoup4            4.9.0                    pypi_0    pypi
bleach                    3.3.0              pyh44b312d_0    conda-forge
boto3                     1.17.72                  pypi_0    pypi
botocore                  1.20.72                  pypi_0    pypi
brotlipy                  0.7.0           py36h269c3a8_1001    conda-forge
ca-certificates           2020.12.5            h4fd8a4c_0    conda-forge
certifi                   2020.12.5        py36h704843e_1    conda-forge
cffi                      1.14.4           py36hcfd9a06_0    conda-forge
chardet                   4.0.0            py36h704843e_1    conda-forge
click                     8.0.0                    pypi_0    pypi
cliff                     3.7.0                    pypi_0    pypi
cloudpickle               1.3.0                    pypi_0    pypi
cmaes                     0.8.2                    pypi_0    pypi
cmd2                      1.5.0                    pypi_0    pypi
cmdstanpy                 0.4.0                    pypi_0    pypi
colorama                  0.4.4                    pypi_0    pypi
colorlog                  5.0.1                    pypi_0    pypi
colorlover                0.3.0                    pypi_0    pypi
conda                     4.10.1           py36h704843e_0    conda-forge
conda-package-handling    1.7.3            py36h269c3a8_0    conda-forge
contextvars               2.4                      pypi_0    pypi
copulalib                 1.1.0                    pypi_0    pypi
copulas                   0.3.3                    pypi_0    pypi
cryptography              3.4.7            py36h70ab5b5_0    conda-forge
cufflinks                 0.17.3                   pypi_0    pypi
cycler                    0.10.0                     py_2    conda-forge
cython                    0.29.17          py36h831f99a_0    conda-forge
dask                      2021.3.0                 pypi_0    pypi
dataclasses               0.8                      pypi_0    pypi
datashape                 0.5.2                    pypi_0    pypi
deap                      1.3.1                    pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
dill                      0.3.1.1                  pypi_0    pypi
distributed               2.20.0                   pypi_0    pypi
docutils                  0.14                     pypi_0    pypi
dtw-python                1.0.5                    pypi_0    pypi
dx                        0.1.2                    pypi_0    pypi
entrypoints               0.3             pyhd8ed1ab_1003    conda-forge
fasttext                  0.9.2                    pypi_0    pypi
feature-selector          1.0.0                    pypi_0    pypi
featuretools              0.14.0                   pypi_0    pypi
findiff                   0.8.5                    pypi_0    pypi
freetype                  2.10.4               hdf53a3c_1    conda-forge
frozendict                2.0.2                    pypi_0    pypi
future                    0.18.2                   pypi_0    pypi
gluonts                   0.4.3                    pypi_0    pypi
gplearn                   0.4.1                    pypi_0    pypi
greenlet                  1.1.0                    pypi_0    pypi
gym                       0.17.2                   pypi_0    pypi
h2o                       3.30.0.3                 pypi_0    pypi
heapdict                  1.0.1                    pypi_0    pypi
hmmlearn                  0.2.3                    pypi_0    pypi
holidays                  0.9.12                   pypi_0    pypi
hyperopt                  0.2.5                    pypi_0    pypi
icu                       64.2                 h4c5d2ac_1    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
immutables                0.15                     pypi_0    pypi
importlib-metadata        4.0.1            py36h704843e_0    conda-forge
iniconfig                 1.1.1                    pypi_0    pypi
ipykernel                 5.5.4            py36h103942d_0    conda-forge
ipython                   7.16.1           py36h0e46ebc_2    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1                    pypi_0    pypi
jax                       0.1.68                   pypi_0    pypi
jedi                      0.17.2           py36h704843e_1    conda-forge
jinja2                    2.11.3             pyh44b312d_0    conda-forge
jmespath                  0.10.0                   pypi_0    pypi
joblib                    1.0.1                    pypi_0    pypi
json5                     0.9.5              pyh9f0ad1d_0    conda-forge
jsonschema                3.2.0              pyhd8ed1ab_3    conda-forge
jupyter_client            6.1.12             pyhd8ed1ab_0    conda-forge
jupyter_core              4.7.1            py36h704843e_0    conda-forge
jupyterlab                2.1.2                      py_0    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_server         1.2.0                      py_0    conda-forge
kiwisolver                1.3.1            py36h72e8208_1    conda-forge
ld_impl_linux-aarch64     2.35.1               h02ad14f_2    conda-forge
libblas                   3.9.0                8_openblas    conda-forge
libcblas                  3.9.0                8_openblas    conda-forge
libffi                    3.2.1             h4c5d2ac_1007    conda-forge
libgcc-ng                 9.3.0               he1ea209_19    conda-forge
libgfortran-ng            7.5.0               h6d8ffed_18    conda-forge
libgfortran4              7.5.0               h6d8ffed_18    conda-forge
libgomp                   9.3.0               he1ea209_19    conda-forge
liblapack                 3.9.0                8_openblas    conda-forge
libopenblas               0.3.12          pthreads_hb3c22a3_1    conda-forge
libpng                    1.6.37               hbd635b3_2    conda-forge
libsodium                 1.0.18               hb9de7d4_1    conda-forge
libstdcxx-ng              9.3.0               h1ed1776_19    conda-forge
lightgbm                  2.3.0                    pypi_0    pypi
mako                      1.1.4                    pypi_0    pypi
markupsafe                1.1.1            py36h269c3a8_3    conda-forge
matplotlib                3.2.1                         0    conda-forge
matplotlib-base           3.2.1            py36h0f30586_0    conda-forge
mistune                   0.8.4           py36h269c3a8_1003    conda-forge
mpi                       1.0                     openmpi    conda-forge
mplfinance                0.12.4a0                 pypi_0    pypi
msgpack                   1.0.0                    pypi_0    pypi
multipledispatch          0.6.0                    pypi_0    pypi
mxnet                     1.6.0                    pypi_0    pypi
nbclient                  0.5.3              pyhd8ed1ab_0    conda-forge
nbconvert                 6.0.7            py36h704843e_3    conda-forge
nbformat                  5.1.3              pyhd8ed1ab_0    conda-forge
ncurses                   6.2                  h7fd3ca4_4    conda-forge
nest-asyncio              1.5.1              pyhd8ed1ab_0    conda-forge
networkx                  2.5.1                    pypi_0    pypi
neural-tangents           0.2.1                    pypi_0    pypi
nltk                      3.4.5                    pypi_0    pypi
notebook                  6.3.0            py36h704843e_0    conda-forge
numpy                     1.18.1           py36h3849536_1    conda-forge
nvidia-ml-py3             7.352.0                  pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
odo                       0+unknown                pypi_0    pypi
openmpi                   4.0.3                hd49bf07_1    conda-forge
openssl                   1.1.1k               hf897c2e_0    conda-forge
opt-einsum                3.3.0                    pypi_0    pypi
optuna                    2.3.0                    pypi_0    pypi
packaging                 20.9               pyh44b312d_0    conda-forge
pandas                    0.25.3           py36h59fbc97_0    conda-forge
pandas-market-calendars   1.7                      pypi_0    pypi
pandocfilters             1.4.2                      py_1    conda-forge
parso                     0.7.1              pyh9f0ad1d_0    conda-forge
pbr                       5.6.0                    pypi_0    pypi
pennylane                 0.9.0                    pypi_0    pypi
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       21.1.1             pyhd8ed1ab_0    conda-forge
plotly                    4.7.1                    pypi_0    pypi
pluggy                    0.13.1                   pypi_0    pypi
ppscore                   0.0.2                    pypi_0    pypi
prettytable               2.1.0                    pypi_0    pypi
prometheus_client         0.10.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.18             pyha770c72_0    conda-forge
psutil                    5.8.0                    pypi_0    pypi
ptvsd                     4.3.2                    pypi_0    pypi
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pulp                      1.6.8                    pypi_0    pypi
py                        1.10.0                   pypi_0    pypi
pyaml                     20.4.0                   pypi_0    pypi
pybind11                  2.6.2                    pypi_0    pypi
pycosat                   0.6.3           py36h269c3a8_1006    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pydantic                  1.8.2                    pypi_0    pypi
pydevd-pycharm            201.8538.36              pypi_0    pypi
pyglet                    1.5.0                    pypi_0    pypi
pygments                  2.9.0              pyhd8ed1ab_0    conda-forge
pykalman                  0.9.5                    pypi_0    pypi
pyopenssl                 20.0.1             pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyperclip                 1.8.2                    pypi_0    pypi
pyro-api                  0.1.2                    pypi_0    pypi
pyro-ppl                  1.3.1                    pypi_0    pypi
pyrsistent                0.17.3           py36h269c3a8_2    conda-forge
pysocks                   1.7.1            py36h704843e_3    conda-forge
pytest                    6.2.4                    pypi_0    pypi
python                    3.6.7           h357f687_1008_cpython    conda-forge
python-dateutil           2.8.0                    pypi_0    pypi
python-editor             1.0.4                    pypi_0    pypi
python-graphviz           0.8.4                    pypi_0    pypi
python_abi                3.6                     1_cp36m    conda-forge
pytz                      2021.1             pyhd8ed1ab_0    conda-forge
pywavelets                1.1.1                    pypi_0    pypi
pyyaml                    5.4.1                    pypi_0    pypi
pyzmq                     22.0.3           py36hfbd0944_1    conda-forge
rauth                     0.7.3                    pypi_0    pypi
readline                  8.1                  h1a49cc3_0    conda-forge
requests                  2.25.1             pyhd3deb0d_0    conda-forge
requests-oauthlib         1.3.0                    pypi_0    pypi
retrying                  1.3.3                    pypi_0    pypi
rpy2                      3.3.6                    pypi_0    pypi
ruamel_yaml               0.15.80         py36h269c3a8_1004    conda-forge
ruptures                  1.1.3                    pypi_0    pypi
scikit-learn              0.24.2                   pypi_0    pypi
scikit-learn-extra        0.2.0                    pypi_0    pypi
scikit-multiflow          0.4.1                    pypi_0    pypi
scikit-optimize           0.7.4                    pypi_0    pypi
scipy                     1.4.1            py36h3a855aa_3    conda-forge
sdeint                    0.2.1                    pypi_0    pypi
seaborn                   0.11.0                   pypi_0    pypi
semantic-version          2.6.0                    pypi_0    pypi
send2trash                1.5.0                      py_0    conda-forge
setuptools                49.6.0           py36h704843e_3    conda-forge
setuptools-git            1.2                      pypi_0    pypi
simpy                     4.0.1                    pypi_0    pypi
six                       1.16.0             pyh6c4a22f_0    conda-forge
sklearn-contrib-py-earth  0.1.0                    pypi_0    pypi
sklearn-json              0.1.0                    pypi_0    pypi
sortedcontainers          2.3.0                    pypi_0    pypi
soupsieve                 2.2.1                    pypi_0    pypi
sqlalchemy                1.4.15                   pypi_0    pypi
sqlite                    3.35.5               h43e6a2a_0    conda-forge
statistics                1.0.3.5                  pypi_0    pypi
stevedore                 3.3.0                    pypi_0    pypi
ta                        0.5.25                   pypi_0    pypi
tabulate                  0.8.9                    pypi_0    pypi
tblib                     1.7.0                    pypi_0    pypi
terminado                 0.9.4            py36h704843e_0    conda-forge
testpath                  0.4.4                      py_0    conda-forge
theano                    1.0.4                    pypi_0    pypi
threadpoolctl             2.1.0                    pypi_0    pypi
tigramite                 4.1.0                    pypi_0    pypi
tk                        8.6.10               ha99a2a3_1    conda-forge
toml                      0.10.2                   pypi_0    pypi
toolz                     0.11.1                   pypi_0    pypi
torch                     1.8.1                    pypi_0    pypi
tornado                   6.1              py36h269c3a8_1    conda-forge
tqdm                      4.60.0             pyhd8ed1ab_0    conda-forge
trading-calendars         2.1.1                    pypi_0    pypi
traitlets                 4.3.3            py36h9f0ad1d_1    conda-forge
tweepy                    3.8.0                    pypi_0    pypi
typing_extensions         3.7.4.3                    py_0    conda-forge
tzdata                    2021a                he74cb21_0    conda-forge
tzlocal                   2.1                      pypi_0    pypi
ujson                     1.35                     pypi_0    pypi
urllib3                   1.26.4             pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
widgetsnbextension        3.5.1                    pypi_0    pypi
wrapt                     1.12.1           py36h269c3a8_3    conda-forge
xarray                    0.15.1                   pypi_0    pypi
xz                        5.2.5                h6dd45c4_1    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
zeromq                    4.3.4                h01db608_0    conda-forge
zict                      2.0.0                    pypi_0    pypi
zipp                      3.4.1              pyhd8ed1ab_0    conda-forge
zlib                      1.2.11            h516909a_1009    conda-forge

Custom C# Libraries

Follow these steps to add custom libraries to your C# project:

  1. Find the name of the package that you want to add on NuGet.
  2. Open a terminal in your CLI root directory.
  3. Run lean library add "<projectName>" <packageName> to add the <packageName> NuGet package to the project in ./<projectName>.
    $ lean library add "My Project" Microsoft.ML
    Retrieving latest available version from NuGet
    Adding Microsoft.ML 1.5.5 to 'My Project/My Project.csproj'
    Restoring packages in 'My Project' to provide local autocomplete
    This command installs the latest version of the Microsoft.ML package. If you want to use a different version you can use the --version <value> option. Additionally, you can pass the --no-local flag to skip restoring the packages locally.

Follow these steps to remove custom libraries from your C# project:

  1. Open a terminal in your CLI root directory.
  2. Run lean library remove "<projectName>" <packageName> to remove the <packageName> NuGet package from the project in ./<projectName>.
    $ lean library remove "My Project" Microsoft.ML
    Removing Microsoft.ML from 'My Project/My Project.csproj'
    Restoring packages in 'My Project'
    You can pass the --no-local flag to skip restoring the packages locally.

Additionally, you can also add or remove custom C# libraries by modifying the C# project file (the file ending with .csproj). This can be done manually or through your editor's built-in NuGet tooling if your editor has such a feature.

Custom Python Libraries

Follow these steps to add custom libraries to your Python project:

  1. Find the name of the package that you want to add on PyPI.
  2. Open a terminal in your CLI root directory.
  3. Run lean library add "<projectName>" <packageName> to add the <packageName> PyPI package to the project in ./<projectName>.
    $ lean library add "My Project" altair
    Retrieving latest compatible version from PyPI
    Adding altair 4.1.0 to 'My Project/requirements.txt'
    Installing altair 4.1.0 in local Python environment to provide local autocomplete
    This command installs the latest version of the altair package that is compatible with Python 3.6 (which is what the official LEAN Docker images use). If you want to use a different version you can use the --version <value> option. Additionally, you can pass the --no-local flag to skip installing the package in your local Python environment.
  4. If you are using VS Code, restart your editor for autocomplete to start working on the new library.

Follow these steps to remove custom libraries from your Python project:

  1. Open a terminal in your CLI root directory.
  2. Run lean library remove "<projectName>" <packageName> to remove the <packageName> PyPI package from the project in ./<projectName>.
    $ lean library remove "My Project" altair
    Removing altair from 'My Project/requirements.txt'

Additionally, you can also add or remove custom Python libraries by modifying the project's requirements.txt file. If you choose to do this, make sure that the library versions that you add to this file are compatible with Python 3.6, because that's what the official LEAN Docker images use.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: