Open
Description
Description
When I run code that access the camera, JupyterLab desktop seems like doesn't request permission to access the camera.
If it try to have permission, a dialog asking for permission will appear and "JupyterLab" will shown in the Mac permissions (Security & Privacy -> Privacy -> Camera). But I have not seen that.
Reproduce
- Open Python3 notebook
- Run next code in a cell
import cv2
cv2.VideoCapture(0)
- I got a next error
Kernel Restarting
The kernel for python/Untitled1.ipynb appears to have died. It will restart automatically.

Expected behavior
When code that needs access a media device run, JupyterLab try to have permission to access the device.
similar issue (VSCode)
microsoft/vscode#95062
Context
- Operating System and version: macOS Ventura 13.4
- JupyterLab-Desktop version: 4.0.1-1
- Installer: macOS-arm64.dmg