Skip to content

Instantly share code, notes, and snippets.

View ChrisBeaumont's full-sized avatar

Chris Beaumont ChrisBeaumont

View GitHub Profile
@ChrisBeaumont
ChrisBeaumont / example2.py
Created August 30, 2012 16:18
In-process IPython Qt Widget. Take 2
"""
An attempt to embed an IPython Qt Terminal widget in-process
Current Behavior
----------------
1) Multiple widgets can be instantiated
2) Each widget shares the same namespace (and underlying kernel)
from glue import core
from glue.core.data_factories import auto_data, tabular_data
from glue.core.link_helpers import Galactic2Equatorial, MultiLink
from glue.qt.glue_application import GlueApplication
from convert_xyz import galactic2xyz
# Load data from files
d = tabular_data('irdcs.fits')
d.label = "IRDC Catalog"