Skip to content

Instantly share code, notes, and snippets.

@traviskaufman
Created June 16, 2018 21:40
Show Gist options
  • Save traviskaufman/e174ef6fda001fcf0b2838aab5b812fd to your computer and use it in GitHub Desktop.
Save traviskaufman/e174ef6fda001fcf0b2838aab5b812fd to your computer and use it in GitHub Desktop.
# ipython-utils/researchenv/__init__.py
# imports...
from researchenv.magics import ResearchEnvMagics
from google.cloud import bigquery
def load_ipython_extension(ipython: InteractiveShell):
# previous logic...
bq = bigquery.Client(project='example-project-id')
ipython.register_magics(ResearchEnvMagics(shell=ipython, bq=bq))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment