def open(filename, redirect=False):
    # get/create a wx.App
    if _in_ipython:
        app = guisupport.get_app_wx()
    else:
        app = wx.App(redirect=redirect)

    frame = MDFViewerFrame(None, -1, "MDF Viewer", size=(800, 600))
    frame.CenterOnScreen()
    frame.Open(filename)
    frame.Show()

    if _in_ipython:
        inputhook.enable_wx(app)
    else:
        app.MainLoop()
Opens a new mdf viewer with a picked context file.
dataset/ETHPy150Open manahl/mdf/mdf/viewer/__init__.py/open