Skip to content

Instantly share code, notes, and snippets.

Last active December 12, 2018 13:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Display the source blob
Display the rendered blob
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import requests
class Test:
def _repr_html_(self):
return "<h1>Test</h1>"
class ChessBoard:
def _repr_html_(self):
url = ''
with requests.get(url) as response:
html = response.content.decode('utf-8')
return html
Copy link

ontouchstart commented Dec 11, 2018

Copy link

You can also load the code to another notebook on Google Colab and play with it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment