adafruit / circuitpython_jupyter_kernel

Jupyter kernel to interact with CircuitPython board over USB
https://circuitpython-kernel.readthedocs.io/en/latest/
Other
37 stars 27 forks source link

Connecting to the kernel running against a notebook server running in a Docker container #32

Open psychemedia opened 3 years ago

psychemedia commented 3 years ago

Hi

I was wondering if there are any recipes for running the kernel against a notebook server inside a Docker container on the same host as a Circuit Playground Express device?

On a Mac, I had a guess at:

docker run --privileged --device /dev/cu.usbmodem14101 -p 8866:8888 cctpy

where cctpy is a simple Docker image with a Jupyter notebook server and the Circuit Python kernel installed, but that doesn't seem to want to play:

No connection to CiruitPython VM: found no board

Checking /dev, there is no cu.usbmodem14101 mounted there.

Naively trying to mount the device as a volume didn't seem to help.

Trying to access devices from inside a docker container is new to me, so any ideas on how this might be made work (assuming it can) would be most welcome...

ladyada commented 3 years ago

this sounds more like a docker question not a circuitpython or jupytr question? if there's no usb serial device, that needs to be solved first.