Import os to find environment in remote notebook

In a private Jupyter notebook that I didn’t create, where can I find the environment path in order to see the version of packages that are installed? I believe it’s a conda environment.
notebook

I ran print(os.environ), and the output is:

environ({‘WORKSPACE_ENV_VARS’: ‘WORKSPACE_MODE,WORKSPACE_TYPE,COURSE_ID,SUBMISSION_TOKEN,PROXY_IMPROVEMENT,WORKSPACE_ID’, ‘LC_ALL’: ‘en_US.UTF-8’, ‘WORKSPACE_ID’: ‘hphzgdtpbthx’, ‘WORKSPACE_TYPE’: ‘student’, ‘LANG’: ‘en_US.UTF-8’, ‘HOSTNAME’: ‘9aada618329b’, ‘NB_UID’: ‘1000’, ‘CONDA_DIR’: ‘/opt/conda’, ‘CONDA_VERSION’: ‘4.8.2’, ‘PWD’: ‘/home/jovyan/work’, ‘HOME’: ‘/home/jovyan’, ‘MINICONDA_MD5’: ‘87e77f097f6ebb5127c77662dfc3165e’, ‘DEBIAN_FRONTEND’: ‘noninteractive’, ‘PROXY_IMPROVEMENT’: ‘true’, ‘NB_USER’: ‘jovyan’, ‘SHELL’: ‘/bin/bash’, ‘PYTHONWARNINGS’: ‘ignore’, ‘SHLVL’: ‘0’, ‘LANGUAGE’: ‘en_US.UTF-8’, ‘XDG_CACHE_HOME’: ‘/home/jovyan/.cache/’, ‘NB_GID’: ‘100’, ‘WORKSPACE_MODE’: ‘readwrite’, ‘PATH’: ‘/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’, ‘COURSE_ID’: ‘mjPtRyfIEe2GwRLfSI7mvQ’, ‘SUBMISSION_TOKEN’: ‘MIFjNf3urNIUaTZX9rro’, ‘MINICONDA_VERSION’: ‘4.8.2’, ‘KERNEL_LAUNCH_TIMEOUT’: ‘40’, ‘JPY_PARENT_PID’: ‘7’, ‘TERM’: ‘xterm-color’, ‘CLICOLOR’: ‘1’, ‘PAGER’: ‘cat’, ‘GIT_PAGER’: ‘cat’, ‘MPLBACKEND’: ‘module://ipykernel.pylab.backend_inline’})

The sub-directories in /opt/conda/bin are:

[‘bunzip2’,
‘xzless’,
‘ptdump’,
‘h5c++’,
‘jupyterhub-singleuser’,
‘lzmadec’,
‘kswitch’,
‘sqlite3’,
‘lzmainfo’,
‘idle3’,
‘webpmux’,
‘pandoc-citeproc’,
‘tput’,
‘jlpm’,
‘tic’,
‘tiff2bw’,
‘lzcat’,
‘gencnval’,
‘bzip2recover’,
‘bzmore’,
‘ncurses6-config’,
‘pt2to3’,
‘pyjson5’,
‘bzgrep’,
‘bzcat’,
‘kpasswd’,
‘h52gif’,
‘certipy’,
‘python3-config’,
‘tini’,
‘h5dump’,
‘configurable-http-proxy’,
‘lzma’,
‘gendict’,
‘tiffmedian’,
‘tiffset’,
‘runxlrd.py’,
‘pip3’,
‘tiffcrop’,
‘h5ls’,
‘captoinfo’,
‘wish’,
‘jupyter-troubleshoot’,
‘node’,
‘zstdmt’,
‘infotocap’,
‘lz4c’,
‘imageio_remove_bin’,
‘alembic’,
‘pyjwt’,
‘pyvenv’,
‘unzstd’,
‘ipython’,
‘icu-config’,
‘pycc’,
‘idle3.7’,
‘lzdiff’,
‘protoc’,
‘bzegrep’,
‘c_rehash’,
‘jupyter-nbconvert’,
‘.widgetsnbextension-post-link.sh’,
‘iptest’,
‘sim_client’,
‘lzless’,
‘clear’,
‘tiffinfo’,
‘f2py3’,
‘h5copy’,
‘jupyterhub’,
‘reset’,
‘jupyter-migrate’,
‘pttree’,
‘wish8.6’,
‘lz4’,
‘h5repack’,
‘xzcat’,
‘webpinfo’,
‘curl-config’,
‘makeconv’,
‘kvno’,
‘python3.7-config’,
‘djpeg’,
‘pkgdata’,
‘tqdm’,
‘ncursesw6-config’,
‘bokeh’,
‘2to3-3.7’,
‘xzegrep’,
‘pygmentize’,
‘dask-worker’,
‘cjpeg’,
‘zstdgrep’,
‘xzdec’,
‘kdestroy’,
‘genbrk’,
‘tiffdump’,
‘jupyter-labhub’,
‘easy_install’,
‘infocmp’,
‘uuclient’,
‘fax2ps’,
‘sqlite3_analyzer’,
‘imageio_download_bin’,
‘h5debug’,
‘gif2h5’,
‘h5clear’,
‘tset’,
‘lz4cat’,
‘compile_et’,
‘pydoc3’,
‘lzegrep’,
‘python’,
‘x86_64-conda_cos6-linux-gnu-ld’,
‘jupyter-labextension’,
‘npx’,
‘python3.7’,
‘ksu’,
‘xzdiff’,
‘h5format_convert’,
‘h5mkgrp’,
‘h5diff’,
‘rdjpgcom’,
‘h5cc’,
‘h5perf_serial’,
‘libpng16-config’,
‘xzfgrep’,
‘conda-env’,
‘derb’,
‘tclsh8.6’,
‘cython’,
‘png-fix-itxt’,
‘libpng-config’,
‘h5jam’,
‘h5watch’,
‘ktutil’,
‘tiffcp’,
‘isympy’,
‘jupyter-run’,
‘openssl’,
‘jupyter-serverextension’,
‘klist’,
‘dask-ssh’,
‘lzfgrep’,
‘fax2tiff’,
‘bzip2’,
‘iptest3’,
‘pal2rgb’,
‘h5repart’,
‘ptrepack’,
‘jupyter-notebook’,
‘tiffcmp’,
‘tiffdither’,
‘jupyter-nbextension’,
‘pip3.7’,
‘k5srvutil’,
‘h5stat’,
‘jupyter-kernel’,
‘cph’,
‘xzgrep’,
‘jupyter’,
‘pydoc’,
‘ipython3’,
‘xzmore’,
‘kadmin’,
‘h5redeploy’,
‘numba’,
‘bzcmp’,
‘gencfu’,
‘wheel’,
‘.widgetsnbextension-pre-unlink.sh’,
‘bzless’,
‘python3.7m’,
‘wrjpgcom’,
‘tiff2pdf’,
‘python3’,
‘lzcmp’,
‘pandoc’,
‘bzdiff’,
‘icuinfo’,
‘unlzma’,
‘kinit’,
‘f2py’,
‘2to3’,
‘f2py3.7’,
‘pngfix’,
‘pyvenv-3.7’,
‘jsonschema’,
‘sclient’,
‘ppm2tiff’,
‘zstdless’,
‘npm’,
‘unxz’,
‘undill’,
‘genrb’,
‘krb5-config’,
‘pip’,
‘jpegtran’,
‘jupyter-trust’,
‘tabs’,
‘zstd’,
‘bzfgrep’,
‘jupyter-lab’,
‘chardetect’,
‘h5unjam’,
‘deactivate’,
‘jupyter-bundlerextension’,
‘activate’,
‘jupyter-kernelspec’,
‘get_objgraph’,
‘tiff2ps’,
‘cythonize’,
‘lzmore’,
‘xz’,
‘lzgrep’,
‘h5fc’,
‘conda’,
‘curve_keygen’,
‘python3.7m-config’,
‘tiffsplit’,
‘zstdcat’,
‘raw2tiff’,
‘xzcmp’,
‘dask-scheduler’,
‘pydoc3.7’,
‘h5import’,
‘skivi’,
‘toe’,
‘unlz4’,
‘cygdb’,
‘freetype-config’,
‘tclsh’,
‘tiff2rgba’,
‘mako-render’,
‘gss-client’]

However, the following commands return a NotADirectoryError: os.listdir(path="/opt/conda/bin/python"); os.listdir(path="/opt/conda/bin/python3"); os.listdir(path="/opt/conda/bin/python3.7"); os.listdir(path="/opt/conda/bin/python3.7m").