Comments (3)
After installing jupyter in docker and running it gives a link that doesn't open in a browser of my linux system. I then installed firefox inside cuQuantum docker but it doesn't launch the browser. Gives a display not found error.How can I run my experiments in jupyter ?
Typically, you launch the Docker container and then run the Jupyter server inside the container and access it from the host machine via browser outside of the container.
To do this, you'll need to publish the appropriate port in the container to the host operating systems. Something like this:
docker run -p 8888:8888 ...
Then on the host OS, open a browser and navigate to localhost:8888
There's also a tool called "Jupyter Docker Stacks" that may be relevant.
from cuquantum.
@mtjrider running using the "Jupyter Docker Stacks" method doesn't take into account the cuQuantum docker environment. Meaning in notebook I can't import cuquantum or cirq.
There is something I am missing and I don't know what.
Here is how I am running the command in terminal.
$ docker run --gpus all --rm nvcr.io/nvidia/cuquantum-appliance:22.07-cirq
and then running
$ docker run -p 8888:8888 jupyter/scipy-notebook:0fd03d9356de
It launches the notebook but the libraries can't be imported.
from cuquantum.
Issue solved !
To run experiments in jupyter I had to execute the following commands:
$ docker run --gpus all -it --rm --runtime=nvidia -v "/home/shashi":"/workspace" -p 80:8888 nvcr.io/nvidia/cuquantum-appliance:22.07-cirq /bin/bash
And then when inside the container I had to install jupyterlab using:
pip3 install jupyterlab
And to launch the nootbook :
jupyter lab --ip 0.0.0.0 --port 8888 --allow-root
Now in the next step when copy and pasting the link in browser I had to change the port from 888 to 80
ex: http://127.0.0.1:8888/lab?token=....
to http://127.0.0.1:80/lab?token=....
@mtjrider Thanks ! for the docker run -p 8888:8888 ...
clue
from cuquantum.
Related Issues (20)
- Dockerfile install HOT 6
- [Question/Issue] How to install cuquantum on WSL2 Ubuntu-20.04? HOT 9
- Why QSimOptions is throwing error when use_sampler disable_gpu are used ? HOT 1
- compile tensornet_example.cu HOT 18
- CircuitToEinsum for QFT: batched_amplitudes slower than qsim full statevector simulation HOT 2
- cirq + custatevec on multiple GPUs
- distributed_reset_configuration failed: python: distributed_interfaces/cutensornet_distributed_interface_mpi.c:44: unpackMpiCommunicator: Assertion `sizeof(MPI_Comm) == comm->commSize' failed. HOT 5
- cuQuantum Python v22.03.0: `ModuleNotFoundError: No module named 'typing_extensions'` HOT 3
- Calling `cutn.distributed_reset_configuration()` with MPICH might fail with `CUTENSORNET_STATUS_DISTRIBUTED_FAILURE` HOT 2
- Jupyter notebooks in the NVIDIA cuQuantum Appliance HOT 2
- Not able to install in M1 HOT 2
- Autograd rules for Pytorch inputs HOT 8
- Build issues with top-level cutensornet.h symlink HOT 6
- Is speed up using multiple GPUs on qsim-mgpu available?
- pip module search for libcublas.so.11 HOT 6
- noisy circuit simulation using cuquantum HOT 15
- Cannot import dependencies from cuquantum in colab HOT 1
- test HOT 2
- CUTENSORNET_STATUS_CUTENSOR_VERSION_MISMATCH in line 198 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuquantum.