python:在mac终端上显示youtube视频

2024-10-01 04:56:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我知道如何使用IPython在笔记本上嵌入YouTube视频。在

从IPython.display导入YouTubeVideo YouTubeVideo('1j\u HxD4iLn8')

请看下面的示例:http://nbviewer.ipython.org/github/ipython/ipython/blob/1.x/examples/notebooks/Part%205%20-%20Rich%20Display%20System.ipynb#Video

但当我在mac终端上运行代码时,它不会显示在终端上。请参见下图。在

我想通过终端显示视频或在新窗口中显示。非常感谢您的时间和考虑。在

Display the youtube video on the terminal


Tags: orggithubhttp终端示例视频youtubeipython