Docker running Jupyter Notebook – `'no $DISPLAY environment variable'?

I am running a Docker container with Jupyter Notebook using:

sudo nvidia-docker run -it -v /media/files:/files -p 8888:8888 -p 6001:6001 mybigdocker:latest

  • Docker Compose Dev and Production Environments Best Workflow
  • mongodb with docker-compose [SocketTimeoutException]
  • Troubleshooting using xvfb and nightwatch
  • How do I correctly specify the **FROM** value to be my local image and not from a Docker Hub registry?
  • Can not access kubernetes master from the container of pods according DNS
  • Docker: communication between web container and php container
  • And then connecting to it at in Chrome.

    Everything works fine, except if I try to do anything with matplotlib, or any type of non-text output, where I get the error:

    TclError: no display name and no $DISPLAY environment variable

    I have tried adding --env="DISPLAY" and --env=$DISPLAY and --env=":0" with no avail.

    How do I fix this?

  • Error committing Oracle tablespace in Docker
  • wildfly docker image authentication issue
  • How to create notification for success application deployment in ECS Docker?
  • Can run ARM/rpi images in Docker on Windows but not linux
  • how do i add a topic to a running kafka container using docker commands?
  • docker linking how can both containers know each others ip
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.