question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VideoStream works in Jupyter Notebook but fails in Jupyter Lab

See original GitHub issue

Running some very simple code to play a video seems to behave differently between Jupyter Notebook (shows an image) and Jupyter Lab (shows the object string representation). Both are running on the same Raspberry Pi on the local network. Indeed, it’s the same instance of Jupyter, just two different endpoints.

from ipywebrtc import VideoStream
VideoStream.from_file('vid.mp4')

Jupyter Notebook:

image

JupyterLab:

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jasongroutcommented, Apr 6, 2020

Ah, it looks like ipywebrtc does not support JupyterLab 2.0 yet: https://github.com/maartenbreddels/ipywebrtc/pull/74

0reactions
matburnhamcommented, Apr 7, 2020

Ah, thanks. I thought it was just me being dumb! I’ll stick to Jupyter Notebok for the time being then.

For completeness, although irrelevant now:

What does jupyter labextension list give?

$ jupyter labextension list
JupyterLab v2.0.1
Known labextensions:
   app dir: /home/pi/.virtualenvs/cv/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        jupyter-webrtc v0.5.0  enabled  OK
Read more comments on GitHub >

github_iconTop Results From Across the Web

cv2.VideoCapture not working in Jupyter Notebook
I am currently trying to do some video classification and am using anaconda along with jupyter notebook to do my training of ...
Read more >
What to do when things go wrong - The Jupyter Notebook
Jupyter fails to start · Have you installed it? ;-) · If you're using a menu shortcut or Anaconda launcher to...
Read more >
Jupyter lab do not work "LoadError: TypeError: in typeassert ...
I am trying to start a jupyter lab notebook, but suddenly it will not work. I start up jupyter lab from the terminal...
Read more >
Read time data stream not working in Jupyter Notebook
Hi I was just trying out the real time quote data function, and it doesn't seem to run in Jupyter Notebook (VSCode), but...
Read more >
Dealing with Long Running Jupyter Notebooks - Saturn Cloud
Jupyter notebooks store all their state in the browser and thus require constant network connectivity. This is a well known design issue, with ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found