Skip to content

Instantly share code, notes, and snippets.

@damontallen
Last active December 17, 2015 12:09
Show Gist options
  • Save damontallen/5607697 to your computer and use it in GitHub Desktop.
Save damontallen/5607697 to your computer and use it in GitHub Desktop.
This is a .py download of an IPython Notebook
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
script = __name__ == '__main__'
# <codecell>
def print_something():
print("This is a function")
# <codecell>
if script:
print_something()
# <codecell>
print("imported yet?")
# <codecell>
Display the source blob
Display the rendered blob
Raw
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