Skip to content

Instantly share code, notes, and snippets.

@ccwang002
Last active January 3, 2016 21:28
Show Gist options
  • Save ccwang002/8521622 to your computer and use it in GitHub Desktop.
Save ccwang002/8521622 to your computer and use it in GitHub Desktop.
PyCon APAC IPython notebook from future import everything
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_())
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment