Jupyter Lab 支持 ipywebrtc

2020年4月9日 4974点热度 0人点赞 0条评论

Jupyter Lab 支持 ipywebrtc

1

前言

近日,我遇到了类似VideoStream works in Jupyter Notebook but fails in Jupyter Lab的问题, ipywebrtc在Jupyter Lab 中有摄像头无法被调用启动。查阅文档后,我找到了一种解决办法。

安装支持Jupyter Lab的ipywebrtc

Windows 环境

以管理员身份启动终端,依次执行

git clone https://github.com/maartenbreddels/ipywebrtc
cd ipywebrtc
pip install -e .
jupyter nbextension install --py --symlink --sys-prefix ipywebrtc
jupyter nbextension enable --py --sys-prefix ipywebrtc
jupyter labextension link js
jupyter lab --watch  # for quick rebuilds

即可正常使用ipywebrtc。

Dong Wang

I will work as a PhD student of TU Graz in Austria. My research interests include Embedded/Edge AI, federated learning, computer vision, and IoT.

文章评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据