Last active
January 3, 2016 21:28
-
-
Save ccwang002/8521622 to your computer and use it in GitHub Desktop.
PyCon APAC IPython notebook
from future import everything
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.display import SVG, HTML | |
_logo_html_template = '''\ | |
<a href="http://tw.pycon.org/2014apac/en/" target="_blank" class="svg">%s</a> | |
<style> | |
a.svg:after { | |
content: ""; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} | |
</style> | |
''' | |
def everything(): | |
return SVG("apac.svg") | |
def pycon_apac_2014(): | |
"""PyCon APAC 2014 Call for Proposal! | |
PyCon APAC will be hosted by Taiwan in May 15-18 | |
blablabla... | |
... | |
""" | |
svg = SVG("apac.svg") | |
return HTML(_logo_html_template % svg._repr_svg_()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment