NVIDIA / cuQuantum

Home for cuQuantum Python & NVIDIA cuQuantum SDK C++ samples
https://docs.nvidia.com/cuda/cuquantum/
BSD 3-Clause "New" or "Revised" License
339 stars 64 forks source link

Jupyter notebooks in the NVIDIA cuQuantum Appliance #32

Closed zohimchandani closed 1 year ago

zohimchandani commented 1 year ago

I pulled the image from here and started a container.

In the following directory: root@c976cba7949e:/workspace/examples# I created a test.ipynb file.

Multiple kernels are available to me in here as shown in the image below:

Screenshot 2023-01-23 at 22 38 58

Why is the container shipped with multiple versions of python?

When I try run the code snippet from here), with the conda env shown in the image above, it asks me to install ipykernel which I do as shown below:


conda install -n base ipykernel --update-deps --force-reinstall
Collecting package metadata (current_repodata.json): done
Solving environment: \ 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/linux-64::sqlite==3.35.3=h74cdb3f_0
  - conda-forge/linux-64::cutensornet==2.0.0=mpi_openmpi_h80f0c51_0
  - conda-forge/linux-64::cupy==11.3.0=py38h405e1b6_1
  - conda-forge/linux-64::numpy==1.23.5=py38h7042d01_0
  - conda-forge/linux-64::custatevec==1.2.0=h0800d71_0
  - conda-forge/linux-64::cutensor==1.6.1.5=h12f7317_0
  - conda-forge/linux-64::cuquantum==22.11.0.13=h2b087ed_0
  - conda-forge/linux-64::fastrlock==0.8=py38hfa26641_3
  - conda-forge/linux-64::cuquantum-python==22.11.0=py38hca921df_0
- Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: - 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/linux-64::cutensornet==2.0.0=mpi_openmpi_h80f0c51_0
  - conda-forge/linux-64::cupy==11.3.0=py38h405e1b6_1
  - conda-forge/linux-64::numpy==1.23.5=py38h7042d01_0
  - conda-forge/linux-64::custatevec==1.2.0=h0800d71_0
  - conda-forge/linux-64::cutensor==1.6.1.5=h12f7317_0
  - conda-forge/linux-64::cuquantum==22.11.0.13=h2b087ed_0
  - conda-forge/linux-64::fastrlock==0.8=py38hfa26641_3
  - conda-forge/linux-64::cuquantum-python==22.11.0=py38hca921df_0
| Solving environment: done
done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - _libgcc_mutex
    - _openmp_mutex
    - asttokens
    - backcall
    - backports
    - backports.functools_lru_cache
    - bzip2
    - ca-certificates
    - comm
    - debugpy
    - decorator
    - entrypoints
    - executing
    - ipykernel
    - ipython
    - jedi
    - jupyter_client
    - jupyter_core
    - ld_impl_linux-64
    - libffi
    - libgcc-ng
    - libgomp
    - libnsl
    - libsodium
    - libsqlite
    - libstdcxx-ng
    - libuuid
    - libzlib
    - matplotlib-inline
    - ncurses
    - nest-asyncio
    - openssl
    - packaging
    - parso
    - pexpect
    - pickleshare
    - pip
    - platformdirs
    - prompt-toolkit
    - psutil
    - ptyprocess
    - pure_eval
    - pygments
    - python-dateutil
    - python=3.8
    - python_abi
    - pyzmq
    - readline
    - setuptools
    - six
    - stack_data
    - tk
    - tornado
    - traitlets
    - typing-extensions
    - typing_extensions
    - wcwidth
    - wheel
    - xz
    - zeromq

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
    _openmp_mutex-4.5          |            2_gnu          23 KB  conda-forge
    asttokens-2.2.1            |     pyhd8ed1ab_0          27 KB  conda-forge
    backcall-0.2.0             |     pyh9f0ad1d_0          13 KB  conda-forge
    backports-1.0              |     pyhd8ed1ab_3           6 KB  conda-forge
    backports.functools_lru_cache-1.6.4|     pyhd8ed1ab_0           9 KB  conda-forge
    brotlipy-0.7.0             |py38h0a891b7_1005         342 KB  conda-forge
    bzip2-1.0.8                |       h7f98852_4         484 KB  conda-forge
    ca-certificates-2022.12.7  |       ha878542_0         143 KB  conda-forge
    certifi-2022.12.7          |     pyhd8ed1ab_0         147 KB  conda-forge
    cffi-1.15.1                |   py38h4a40e3a_3         230 KB  conda-forge
    charset-normalizer-2.1.1   |     pyhd8ed1ab_0          36 KB  conda-forge
    colorama-0.4.6             |     pyhd8ed1ab_0          25 KB  conda-forge
    comm-0.1.2                 |     pyhd8ed1ab_0          11 KB  conda-forge
    conda-22.11.1              |   py38h578d9bd_1         905 KB  conda-forge
    conda-package-handling-2.0.2|     pyh38be061_0         247 KB  conda-forge
    conda-package-streaming-0.7.0|     pyhd8ed1ab_1          17 KB  conda-forge
    cryptography-39.0.0        |   py38h3d167d9_0         1.4 MB  conda-forge
    cudatoolkit-11.8.0         |      h37601d7_11       635.9 MB  conda-forge
    debugpy-1.6.5              |   py38h8dc9893_0         1.8 MB  conda-forge
    decorator-5.1.1            |     pyhd8ed1ab_0          12 KB  conda-forge
    entrypoints-0.4            |     pyhd8ed1ab_0           9 KB  conda-forge
    executing-1.2.0            |     pyhd8ed1ab_0          24 KB  conda-forge
    idna-3.4                   |     pyhd8ed1ab_0          55 KB  conda-forge
    ipykernel-6.20.2           |     pyh210e3f2_0         108 KB  conda-forge
    ipython-8.8.0              |     pyh41d4057_0         555 KB  conda-forge
    jedi-0.18.2                |     pyhd8ed1ab_0         786 KB  conda-forge
    jupyter_client-7.4.9       |     pyhd8ed1ab_0          97 KB  conda-forge
    jupyter_core-5.1.3         |   py38h578d9bd_0          87 KB  conda-forge
    ld_impl_linux-64-2.39      |       hcc3a1bd_1         675 KB  conda-forge
    libffi-3.4.2               |       h7f98852_5          57 KB  conda-forge
    libgcc-ng-12.2.0           |      h65d4601_19         931 KB  conda-forge
    libgomp-12.2.0             |      h65d4601_19         455 KB  conda-forge
    libnsl-2.0.0               |       h7f98852_0          31 KB  conda-forge
    libsodium-1.0.18           |       h36c2ea0_1         366 KB  conda-forge
    libsqlite-3.40.0           |       h753d276_0         791 KB  conda-forge
    libstdcxx-ng-12.2.0        |      h46fd767_19         4.3 MB  conda-forge
    libuuid-2.32.1             |    h7f98852_1000          28 KB  conda-forge
    libzlib-1.2.13             |       h166bdaf_4          64 KB  conda-forge
    matplotlib-inline-0.1.6    |     pyhd8ed1ab_0          12 KB  conda-forge
    mpi-1.0                    |          openmpi           4 KB  conda-forge
    ncurses-6.3                |       h27087fc_1        1002 KB  conda-forge
    nest-asyncio-1.5.6         |     pyhd8ed1ab_0          10 KB  conda-forge
    openmpi-4.1.4              |     ha1ae619_102         3.6 MB  conda-forge
    openssl-3.0.7              |       h0b41bf4_1         2.5 MB  conda-forge
    packaging-23.0             |     pyhd8ed1ab_0          40 KB  conda-forge
    parso-0.8.3                |     pyhd8ed1ab_0          69 KB  conda-forge
    pexpect-4.8.0              |     pyh1a96a4e_2          48 KB  conda-forge
    pickleshare-0.7.5          |          py_1003           9 KB  conda-forge
    pip-22.3.1                 |     pyhd8ed1ab_0         1.5 MB  conda-forge
    platformdirs-2.6.2         |     pyhd8ed1ab_0          17 KB  conda-forge
    pluggy-1.0.0               |     pyhd8ed1ab_5          16 KB  conda-forge
    prompt-toolkit-3.0.36      |     pyha770c72_0         265 KB  conda-forge
    psutil-5.9.4               |   py38h0a891b7_0         348 KB  conda-forge
    ptyprocess-0.7.0           |     pyhd3deb0d_0          16 KB  conda-forge
    pure_eval-0.2.2            |     pyhd8ed1ab_0          14 KB  conda-forge
    pycosat-0.6.4              |   py38h0a891b7_1         108 KB  conda-forge
    pycparser-2.21             |     pyhd8ed1ab_0         100 KB  conda-forge
    pygments-2.14.0            |     pyhd8ed1ab_0         805 KB  conda-forge
    pyopenssl-23.0.0           |     pyhd8ed1ab_0         124 KB  conda-forge
    pysocks-1.7.1              |     pyha2e5f31_6          19 KB  conda-forge
    python-3.8.15              |h4a9ceb5_0_cpython        19.9 MB  conda-forge
    python-dateutil-2.8.2      |     pyhd8ed1ab_0         240 KB  conda-forge
    python_abi-3.8             |           3_cp38           6 KB  conda-forge
    pyzmq-25.0.0               |   py38he24dcef_0         431 KB  conda-forge
    readline-8.1.2             |       h0f457ee_0         291 KB  conda-forge
    requests-2.28.2            |     pyhd8ed1ab_0          55 KB  conda-forge
    ruamel.yaml-0.17.21        |   py38h0a891b7_2         172 KB  conda-forge
    ruamel.yaml.clib-0.2.7     |   py38h1de0b5d_1         143 KB  conda-forge
    setuptools-66.1.1          |     pyhd8ed1ab_0         630 KB  conda-forge
    six-1.16.0                 |     pyh6c4a22f_0          14 KB  conda-forge
    stack_data-0.6.2           |     pyhd8ed1ab_0          26 KB  conda-forge
    tk-8.6.12                  |       h27826a3_0         3.3 MB  conda-forge
    tornado-6.2                |   py38h0a891b7_1         654 KB  conda-forge
    tqdm-4.64.1                |     pyhd8ed1ab_0          82 KB  conda-forge
    traitlets-5.8.1            |     pyhd8ed1ab_0          96 KB  conda-forge
    typing-extensions-4.4.0    |       hd8ed1ab_0           8 KB  conda-forge
    typing_extensions-4.4.0    |     pyha770c72_0          29 KB  conda-forge
    urllib3-1.26.14            |     pyhd8ed1ab_0         110 KB  conda-forge
    wcwidth-0.2.6              |     pyhd8ed1ab_0          28 KB  conda-forge
    wheel-0.38.4               |     pyhd8ed1ab_0          32 KB  conda-forge
    xz-5.2.6                   |       h166bdaf_0         409 KB  conda-forge
    zeromq-4.3.4               |       h9c3ff4c_1         351 KB  conda-forge
    zstandard-0.19.0           |   py38h0a891b7_0         671 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       689.1 MB

The following NEW packages will be INSTALLED:

  asttokens          conda-forge/noarch::asttokens-2.2.1-pyhd8ed1ab_0 None
  backcall           conda-forge/noarch::backcall-0.2.0-pyh9f0ad1d_0 None
  backports          conda-forge/noarch::backports-1.0-pyhd8ed1ab_3 None
  backports.functoo~ conda-forge/noarch::backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0 None
  charset-normalizer conda-forge/noarch::charset-normalizer-2.1.1-pyhd8ed1ab_0 None
  colorama           conda-forge/noarch::colorama-0.4.6-pyhd8ed1ab_0 None
  comm               conda-forge/noarch::comm-0.1.2-pyhd8ed1ab_0 None
  conda-package-str~ conda-forge/noarch::conda-package-streaming-0.7.0-pyhd8ed1ab_1 None
  cudatoolkit        conda-forge/linux-64::cudatoolkit-11.8.0-h37601d7_11 None
  debugpy            conda-forge/linux-64::debugpy-1.6.5-py38h8dc9893_0 None
  decorator          conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_0 None
  entrypoints        conda-forge/noarch::entrypoints-0.4-pyhd8ed1ab_0 None
  executing          conda-forge/noarch::executing-1.2.0-pyhd8ed1ab_0 None
  ipykernel          conda-forge/noarch::ipykernel-6.20.2-pyh210e3f2_0 None
  ipython            conda-forge/noarch::ipython-8.8.0-pyh41d4057_0 None
  jedi               conda-forge/noarch::jedi-0.18.2-pyhd8ed1ab_0 None
  jupyter_client     conda-forge/noarch::jupyter_client-7.4.9-pyhd8ed1ab_0 None
  jupyter_core       conda-forge/linux-64::jupyter_core-5.1.3-py38h578d9bd_0 None
  libsodium          conda-forge/linux-64::libsodium-1.0.18-h36c2ea0_1 None
  matplotlib-inline  conda-forge/noarch::matplotlib-inline-0.1.6-pyhd8ed1ab_0 None
  mpi                conda-forge/linux-64::mpi-1.0-openmpi None
  nest-asyncio       conda-forge/noarch::nest-asyncio-1.5.6-pyhd8ed1ab_0 None
  openmpi            conda-forge/linux-64::openmpi-4.1.4-ha1ae619_102 None
  packaging          conda-forge/noarch::packaging-23.0-pyhd8ed1ab_0 None
  parso              conda-forge/noarch::parso-0.8.3-pyhd8ed1ab_0 None
  pexpect            conda-forge/noarch::pexpect-4.8.0-pyh1a96a4e_2 None
  pickleshare        conda-forge/noarch::pickleshare-0.7.5-py_1003 None
  platformdirs       conda-forge/noarch::platformdirs-2.6.2-pyhd8ed1ab_0 None
  pluggy             conda-forge/noarch::pluggy-1.0.0-pyhd8ed1ab_5 None
  prompt-toolkit     conda-forge/noarch::prompt-toolkit-3.0.36-pyha770c72_0 None
  psutil             conda-forge/linux-64::psutil-5.9.4-py38h0a891b7_0 None
  ptyprocess         conda-forge/noarch::ptyprocess-0.7.0-pyhd3deb0d_0 None
  pure_eval          conda-forge/noarch::pure_eval-0.2.2-pyhd8ed1ab_0 None
  pygments           conda-forge/noarch::pygments-2.14.0-pyhd8ed1ab_0 None
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0 None
  pyzmq              conda-forge/linux-64::pyzmq-25.0.0-py38he24dcef_0 None
  ruamel.yaml        conda-forge/linux-64::ruamel.yaml-0.17.21-py38h0a891b7_2 None
  ruamel.yaml.clib   conda-forge/linux-64::ruamel.yaml.clib-0.2.7-py38h1de0b5d_1 None
  stack_data         conda-forge/noarch::stack_data-0.6.2-pyhd8ed1ab_0 None
  tornado            conda-forge/linux-64::tornado-6.2-py38h0a891b7_1 None
  traitlets          conda-forge/noarch::traitlets-5.8.1-pyhd8ed1ab_0 None
  typing-extensions  conda-forge/noarch::typing-extensions-4.4.0-hd8ed1ab_0 None
  typing_extensions  conda-forge/noarch::typing_extensions-4.4.0-pyha770c72_0 None
  wcwidth            conda-forge/noarch::wcwidth-0.2.6-pyhd8ed1ab_0 None
  zeromq             conda-forge/linux-64::zeromq-4.3.4-h9c3ff4c_1 None
  zstandard          conda-forge/linux-64::zstandard-0.19.0-py38h0a891b7_0 None

The following packages will be UPDATED:

  _openmp_mutex                                   4.5-1_gnu --> 4.5-2_gnu None
  brotlipy                          0.7.0-py38h497a2fe_1001 --> 0.7.0-py38h0a891b7_1005 None
  ca-certificates                      2022.9.24-ha878542_0 --> 2022.12.7-ha878542_0 None
  certifi                            2022.9.24-pyhd8ed1ab_0 --> 2022.12.7-pyhd8ed1ab_0 None
  cffi                                1.15.1-py38h4a40e3a_2 --> 1.15.1-py38h4a40e3a_3 None
  conda                               22.9.0-py38h578d9bd_2 --> 22.11.1-py38h578d9bd_1 None
  conda-package-han~ conda-forge/linux-64::conda-package-h~ --> conda-forge/noarch::conda-package-handling-2.0.2-pyh38be061_0 None
  cryptography                         3.4.7-py38ha5dfef3_0 --> 39.0.0-py38h3d167d9_0 None
  idna                                    2.10-pyh9f0ad1d_0 --> 3.4-pyhd8ed1ab_0 None
  libstdcxx-ng                            9.3.0-h6de172a_18 --> 12.2.0-h46fd767_19 None
  openssl                                 1.1.1s-h0b41bf4_1 --> 3.0.7-h0b41bf4_1 None
  pip                                   21.2.4-pyhd8ed1ab_0 --> 22.3.1-pyhd8ed1ab_0 None
  pycosat                           0.6.3-py38h497a2fe_1006 --> 0.6.4-py38h0a891b7_1 None
  pycparser                               2.20-pyh9f0ad1d_2 --> 2.21-pyhd8ed1ab_0 None
  pyopenssl                             20.0.1-pyhd8ed1ab_0 --> 23.0.0-pyhd8ed1ab_0 None
  pysocks            conda-forge/linux-64::pysocks-1.7.1-p~ --> conda-forge/noarch::pysocks-1.7.1-pyha2e5f31_6 None
  python_abi                                     3.8-1_cp38 --> 3.8-3_cp38 None
  requests                              2.25.1-pyhd3deb0d_0 --> 2.28.2-pyhd8ed1ab_0 None
  setuptools         conda-forge/linux-64::setuptools-49.6~ --> conda-forge/noarch::setuptools-66.1.1-pyhd8ed1ab_0 None
  six                                   1.15.0-pyh9f0ad1d_0 --> 1.16.0-pyh6c4a22f_0 None
  tqdm                                  4.59.0-pyhd8ed1ab_0 --> 4.64.1-pyhd8ed1ab_0 None
  urllib3                               1.26.4-pyhd8ed1ab_0 --> 1.26.14-pyhd8ed1ab_0 None
  wheel                                 0.36.2-pyhd3deb0d_0 --> 0.38.4-pyhd8ed1ab_0 None

The following packages will be DOWNGRADED:

  python                          3.8.15-h257c98d_0_cpython --> 3.8.15-h4a9ceb5_0_cpython None

Proceed ([y]/n)? y

Downloading and Extracting Packages
traitlets-5.8.1      | 96 KB     | ###################################################################################################################### | 100% 
backports-1.0        | 6 KB      | ###################################################################################################################### | 100% 
openssl-3.0.7        | 2.5 MB    | ###################################################################################################################### | 100% 
ipykernel-6.20.2     | 108 KB    | ###################################################################################################################### | 100% 
pyzmq-25.0.0         | 431 KB    | ###################################################################################################################### | 100% 
_libgcc_mutex-0.1    | 3 KB      | ###################################################################################################################### | 100% 
asttokens-2.2.1      | 27 KB     | ###################################################################################################################### | 100% 
tk-8.6.12            | 3.3 MB    | ###################################################################################################################### | 100% 
prompt-toolkit-3.0.3 | 265 KB    | ###################################################################################################################### | 100% 
entrypoints-0.4      | 9 KB      | ###################################################################################################################### | 100% 
libffi-3.4.2         | 57 KB     | ###################################################################################################################### | 100% 
psutil-5.9.4         | 348 KB    | ###################################################################################################################### | 100% 
typing_extensions-4. | 29 KB     | ###################################################################################################################### | 100% 
idna-3.4             | 55 KB     | ###################################################################################################################### | 100% 
wcwidth-0.2.6        | 28 KB     | ###################################################################################################################### | 100% 
requests-2.28.2      | 55 KB     | ###################################################################################################################### | 100% 
openmpi-4.1.4        | 3.6 MB    | ###################################################################################################################### | 100% 
pickleshare-0.7.5    | 9 KB      | ###################################################################################################################### | 100% 
comm-0.1.2           | 11 KB     | ###################################################################################################################### | 100% 
cffi-1.15.1          | 230 KB    | ###################################################################################################################### | 100% 
pygments-2.14.0      | 805 KB    | ###################################################################################################################### | 100% 
ncurses-6.3          | 1002 KB   | ###################################################################################################################### | 100% 
stack_data-0.6.2     | 26 KB     | ###################################################################################################################### | 100% 
ld_impl_linux-64-2.3 | 675 KB    | ###################################################################################################################### | 100% 
readline-8.1.2       | 291 KB    | ###################################################################################################################### | 100% 
_openmp_mutex-4.5    | 23 KB     | ###################################################################################################################### | 100% 
packaging-23.0       | 40 KB     | ###################################################################################################################### | 100% 
colorama-0.4.6       | 25 KB     | ###################################################################################################################### | 100% 
libsqlite-3.40.0     | 791 KB    | ###################################################################################################################### | 100% 
wheel-0.38.4         | 32 KB     | ###################################################################################################################### | 100% 
conda-22.11.1        | 905 KB    | ###################################################################################################################### | 100% 
ruamel.yaml.clib-0.2 | 143 KB    | ###################################################################################################################### | 100% 
pycparser-2.21       | 100 KB    | ###################################################################################################################### | 100% 
python_abi-3.8       | 6 KB      | ###################################################################################################################### | 100% 
cryptography-39.0.0  | 1.4 MB    | ###################################################################################################################### | 100% 
tornado-6.2          | 654 KB    | ###################################################################################################################### | 100% 
pluggy-1.0.0         | 16 KB     | ###################################################################################################################### | 100% 
bzip2-1.0.8          | 484 KB    | ###################################################################################################################### | 100% 
cudatoolkit-11.8.0   | 635.9 MB  | ###################################################################################################################### | 100% 
tqdm-4.64.1          | 82 KB     | ###################################################################################################################### | 100% 
urllib3-1.26.14      | 110 KB    | ###################################################################################################################### | 100% 
mpi-1.0              | 4 KB      | ###################################################################################################################### | 100% 
pycosat-0.6.4        | 108 KB    | ###################################################################################################################### | 100% 
libsodium-1.0.18     | 366 KB    | ###################################################################################################################### | 100% 
executing-1.2.0      | 24 KB     | ###################################################################################################################### | 100% 
libzlib-1.2.13       | 64 KB     | ###################################################################################################################### | 100% 
libstdcxx-ng-12.2.0  | 4.3 MB    | ###################################################################################################################### | 100% 
brotlipy-0.7.0       | 342 KB    | ###################################################################################################################### | 100% 
pyopenssl-23.0.0     | 124 KB    | ###################################################################################################################### | 100% 
platformdirs-2.6.2   | 17 KB     | ###################################################################################################################### | 100% 
python-3.8.15        | 19.9 MB   | ###################################################################################################################### | 100% 
ca-certificates-2022 | 143 KB    | ###################################################################################################################### | 100% 
setuptools-66.1.1    | 630 KB    | ###################################################################################################################### | 100% 
six-1.16.0           | 14 KB     | ###################################################################################################################### | 100% 
python-dateutil-2.8. | 240 KB    | ###################################################################################################################### | 100% 
backcall-0.2.0       | 13 KB     | ###################################################################################################################### | 100% 
libuuid-2.32.1       | 28 KB     | ###################################################################################################################### | 100% 
jupyter_core-5.1.3   | 87 KB     | ###################################################################################################################### | 100% 
pexpect-4.8.0        | 48 KB     | ###################################################################################################################### | 100% 
libgomp-12.2.0       | 455 KB    | ###################################################################################################################### | 100% 
zeromq-4.3.4         | 351 KB    | ###################################################################################################################### | 100% 
libnsl-2.0.0         | 31 KB     | ###################################################################################################################### | 100% 
typing-extensions-4. | 8 KB      | ###################################################################################################################### | 100% 
xz-5.2.6             | 409 KB    | ###################################################################################################################### | 100% 
parso-0.8.3          | 69 KB     | ###################################################################################################################### | 100% 
pip-22.3.1           | 1.5 MB    | ###################################################################################################################### | 100% 
zstandard-0.19.0     | 671 KB    | ###################################################################################################################### | 100% 
ipython-8.8.0        | 555 KB    | ###################################################################################################################### | 100% 
certifi-2022.12.7    | 147 KB    | ###################################################################################################################### | 100% 
ruamel.yaml-0.17.21  | 172 KB    | ###################################################################################################################### | 100% 
ptyprocess-0.7.0     | 16 KB     | ###################################################################################################################### | 100% 
matplotlib-inline-0. | 12 KB     | ###################################################################################################################### | 100% 
conda-package-handli | 247 KB    | ###################################################################################################################### | 100% 
jupyter_client-7.4.9 | 97 KB     | ###################################################################################################################### | 100% 
debugpy-1.6.5        | 1.8 MB    | ###################################################################################################################### | 100% 
decorator-5.1.1      | 12 KB     | ###################################################################################################################### | 100% 
nest-asyncio-1.5.6   | 10 KB     | ###################################################################################################################### | 100% 
pure_eval-0.2.2      | 14 KB     | ###################################################################################################################### | 100% 
jedi-0.18.2          | 786 KB    | ###################################################################################################################### | 100% 
pysocks-1.7.1        | 19 KB     | ###################################################################################################################### | 100% 
backports.functools_ | 9 KB      | ###################################################################################################################### | 100% 
libgcc-ng-12.2.0     | 931 KB    | ###################################################################################################################### | 100% 
conda-package-stream | 17 KB     | ###################################################################################################################### | 100% 
charset-normalizer-2 | 36 KB     | ###################################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: | By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

|  
For Linux 64, Open MPI is built with CUDA awareness but this support is disabled by default.
To enable it, please set the environment variable OMPI_MCA_opal_cuda_support=true before
launching your MPI processes. Equivalently, you can set the MCA parameter in the command line:
mpiexec --mca opal_cuda_support 1 ...

In addition, the UCX support is also built but disabled by default.
To enable it, first install UCX (conda install -c conda-forge ucx). Then, set the environment
variables OMPI_MCA_pml="ucx" OMPI_MCA_osc="ucx" before launching your MPI processes.
Equivalently, you can set the MCA parameters in the command line:
mpiexec --mca pml ucx --mca osc ucx ...
Note that you might also need to set UCX_MEMTYPE_CACHE=n for CUDA awareness via UCX.
Please consult UCX's documentation for detail.

done
Retrieving notices: ...working... done

This I believe changes the path for mpirun which causes issues in executing the code.

root@c976cba7949e:/workspace/examples# which mpirun
/opt/conda/bin/mpirun

How do I circumvent this to make the appliance support .ipynb files?

Thanks

zohimchandani commented 1 year ago

Note that the location of mpirun is different before I install ipykernel and .py files work prior to this installation too.

leofang commented 1 year ago

Convert this to a discussion thread since it's not a bug.