Skip to content

Commit c5b03e4

Browse files
committed
lab3 play vid
1 parent 849108d commit c5b03e4

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

mitdeeplearning/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
import mitdeeplearning.lab1
44
import mitdeeplearning.lab2
5+
import mitdeeplearning.lab3

mitdeeplearning/lab3.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import io
2+
import base64
3+
from IPython.display import HTML
4+
5+
6+
def play_video(filename):
7+
encoded = base64.b64encode(io.open('./agent.mp4', 'r+b').read())
8+
embedded = HTML(data='''
9+
<video controls>
10+
<source src="data:video/mp4;base64,{0}" type="video/mp4" />
11+
</video>'''.format(encoded.decode('ascii')))
12+
13+
return embedded

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def get_dist(pkgname):
2121
setup(
2222
name = 'mitdeeplearning', # How you named your package folder (MyLib)
2323
packages = ['mitdeeplearning'], # Chose the same as "name"
24-
version = '0.4.9', # Start with a small number and increase it with every change you make
24+
version = '0.5.0', # Start with a small number and increase it with every change you make
2525
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
2626
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library
2727
author = 'Alexander Amini', # Type in your name
2828
author_email = '[email protected]', # Type in your E-Mail
2929
url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website
30-
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.4.9.tar.gz', # I explain this later on
30+
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.5.0.tar.gz', # I explain this later on
3131
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best
3232
install_requires=install_deps,
3333
classifiers=[

0 commit comments

Comments
 (0)