我知道如何使用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终端上运行代码时,它不会显示在终端上。请参见下图。在
我想通过终端显示视频或在新窗口中显示。非常感谢您的时间和考虑。在
Tags:
在IPython.display只能在你当前不使用的IPython内部工作。在
相关问题 更多 >
编程相关推荐