In [ ]:
# import numpy as np
# import cv2
# from matplotlib import pyplot as plt
# from IPython import __version__
In [ ]:
# %reload_ext version_information
# %version_information numpy, cv2, matplotlib
# %load_ext version_information
# %reload_ext version_information
# %version_information numpy, matplotlib
# __version__
# %config InlineBackend.figure_format='retina'
In [ ]:
# from IPython.display import HTML
# video = open("walkingeye.mp4", "rb").read()
# video_encoded = video.encode("base64")
# video_tag = '<video width=300 controls alt="test" src="data:video/x-m4v;base64,{0}">'.format(video_encoded)
# HTML(video_tag)
In [ ]:
# def showVideo(filename):
# from IPython.display import HTML
# video = open(filename, "rb").read()
# video_encoded = video.encode("base64")
# video_tag = '<video width=300 controls alt="test" src="data:video/x-m4v;base64,{0}">'.format(video_encoded)
# return HTML(video_tag)
# showVideo("walkingeye.mp4")
In [30]:
# %load ./test.py
%matplotlib inline
from __future__ import print_function
from __future__ import division
import cv2
import numpy as np
from matplotlib import pyplot as plt
print('OpenCV version {}'.format(cv2.__version__))
# pip install version_information
%version_information
%config InlineBackend.figure_format='retina'
In [ ]:
from IPython.display import IFrame
IFrame('http://www.macrumors.com/', width=800, height=500)
In [ ]:
from IPython.display import IFrame
IFrame('https://en.wikipedia.org', width=700, height=500)
In [ ]:
IFrame('http://www.apple.com/', width=800, height=500)
In [ ]:
HTML(html)
In [ ]:
%lsmagic
In [ ]:
# %load ./test.py
from __future__ import print_function
from __future__ import division
import cv2
import numpy as np
%version_information
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
%who
%time
%system
%pwd
%colors nocolor
%alias
%connect_info
%env
In [ ]:
In [ ]:
In [27]:
import test2
In [28]:
test2.showVideo2("walkingeye.mp4", width=400)
Out[28]: