Video doesn't play in Notebook when using full path

I have a Notebook that does some data processing and outputs among other things some video files (mp4). I would like to display the generated mp4 in the notebook. However, Video does not seem to work if I use the full path to the mp4 and/or if the video is in a different path relative to the Notebook.

The Notebook is not necessarily in the same root path as the generated MP4s. Is there a way to use IPython.display.Video with a full file path? I suspect the issue is related to the “src” path in the embedded HTML not allowing local files or something along those lines.


from IPython.display import Video
#Doesn’t work
Video(r’C:\common\notebook_dir\sub_dir\sample.mp4’)Preformatted text