Skip to content

Instantly share code, notes, and snippets.

@daguar
Created June 5, 2014 00:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daguar/9a6fc83d1a67939c5110 to your computer and use it in GitHub Desktop.
Save daguar/9a6fc83d1a67939c5110 to your computer and use it in GitHub Desktop.
Using IPython's embed() to interactively play with code at a specific point
Display the source blob
Display the rendered blob
Raw
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Beer Revolution"},"geometry":{"type":"Point","coordinates":[-122.26701736450197,37.79757704258442]}},{"type":"Feature","properties":{"name":"Eli's"},"geometry":{"type":"Point","coordinates":[-122.26950645446776,37.826463467511616]}},{"type":"Feature","properties":{"name":"Ruby Room"},"geometry":{"type":"Point","coordinates":[-122.26332664489746,37.80151060070089]}}]}
from IPython import embed
import json
geojson_string = open('good_oakland_bars.geojson').read()
geodata_dict = json.loads(geojson_string)
embed()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment