Installation Check

This notebook is just to check we have all the libraries installationed and ready to go


In [1]:
import importlib

In [2]:
working_libs = ["jupyterlab"]
basic_libs = ["numpy", "pandas"]
ml_libs = ["sklearn", "joblib"]
vis_libs = ["matplotlib", "seaborn", "altair", "plotnine", "modelvis", "yellowbrick"]

In [3]:
libs = working_libs + basic_libs + ml_libs + vis_libs

In [4]:
def get_version(libs):
    for lib in libs:
        module = importlib.import_module(lib)
        ver = getattr(module, "__version__")
        print(ver, "\t ", lib)

In [5]:
get_version(libs)


0.35.4 	  jupyterlab
1.15.4 	  numpy
0.23.4 	  pandas
0.20.0 	  sklearn
0.13.0 	  joblib
3.0.2 	  matplotlib
0.9.0 	  seaborn
2.2.2 	  altair
0.5.1 	  plotnine
0.1.6 	  modelvis

In [6]:
lib_rqmt = []
def requirements(libs):
    for lib in libs:
        module = importlib.import_module(lib)
        ver = getattr(module, "__version__")
        lib_ver = "- "+lib+">="+ver
        lib_rqmt.append(lib_ver)
        print(lib_ver)

In [7]:
requirements(libs)


- jupyterlab>=0.35.4
- numpy>=1.15.4
- pandas>=0.23.4
- sklearn>=0.20.0
- joblib>=0.13.0
- matplotlib>=3.0.2
- seaborn>=0.9.0
- altair>=2.2.2
- plotnine>=0.5.1
- modelvis>=0.1.6

In [8]:
lib_rqmt


Out[8]:
['- jupyterlab>=0.35.4',
 '- numpy>=1.15.4',
 '- pandas>=0.23.4',
 '- sklearn>=0.20.0',
 '- joblib>=0.13.0',
 '- matplotlib>=3.0.2',
 '- seaborn>=0.9.0',
 '- altair>=2.2.2',
 '- plotnine>=0.5.1',
 '- modelvis>=0.1.6']

In [ ]: