Giter Site home page Giter Site logo

Comments (6)

benz0li avatar benz0li commented on June 14, 2024 1

@ravigunasekara Bind mounting does not work with VirtioFS: docker/for-mac#6243 (comment)

Use gRPC FUSE.

from docker-stacks.

mathbunnyru avatar mathbunnyru commented on June 14, 2024

We only push latest images to Quay.io, could you please try using quay.io/jupyter/tensorflow-notebook image?

from docker-stacks.

mathbunnyru avatar mathbunnyru commented on June 14, 2024

Also, please, try executing your command without volume mounted - do you still have an error?

from docker-stacks.

ravigunasekara avatar ravigunasekara commented on June 14, 2024

Thanks for the response Ayas, with this image, it straightaway kills the kernel and restarts. when I try to import tensorflow after restart it kills again and restarts. Forgot to mention am using a MAC with M1 chip. I have tried it on my old Mac which has Intel chipset and it works there. Am good for now but leaving this open as this could be the case for other mac users with an M1 chip. Let me know if you need further details for investigations. thanks

from docker-stacks.

mathbunnyru avatar mathbunnyru commented on June 14, 2024

docker run --pull always -p 8888:8888 quay.io/jupyter/tensorflow-notebook + import tensorflow works fine for me on M2 MacBook Air, Docker Desktop 4.26.1, macOS Sonoma 14.2.1.
I remember a case when upgrading to Sonoma resolved the issue (it was about emulating x86_64 on a apple-silicon Mac though): #1999 (comment)

Could you please try to close all the jupyterlab tabs in a browser, run the command above, and then try to import tensorflow in a private tab?
Please, attach your logs from the terminal as well.
Also, please, make sure, you have the same Docker Desktop version.

from docker-stacks.

benz0li avatar benz0li commented on June 14, 2024

Out of curiosity: Does it work with my JupyterLab Python docker stack?

On your Apple computer

docker run -it --rm \
  -p 8888:8888 \
  -v "${PWD}":/home/jovyan \
  glcr.b-data.ch/jupyterlab/python/base

In the container

JupyterLab Terminal

pip install tensorflow
python

Python REPL

import tensorflow as tf

For more information, see https://github.com/b-data/jupyterlab-python-docker-stack.
(with b-data's/my docker stack one is supposed to mount the entire home directory).

  1. Multi-arch: linux/amd64, linux/arm64/v8
    ℹ️ Runs on Apple M series using Docker Desktop.
  2. Base image: Debian instead of Ubuntu
    ℹ️ CUDA-enabled images are Ubuntu-based.
  3. IDE: code-server next to JupyterLab
    ℹ️ code-server = VS Code in the browser.
  4. Just Python – no Conda / Mamba

from docker-stacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.