Module Expr Str ImportFrom alias Import alias alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str ImportFrom alias Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Import alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Num If NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad TupleLoad Str NameLoad Call NameLoad keyword Str keyword AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Str keyword AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Call NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num Str Num NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body ImportFrom alias TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num If AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr Str orelse If AttributeLoad NameLoad attr body Import alias Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str orelse Expr Call NameLoad NameLoad NameLoad
N/A N/A 
This example illustrates using a Ginga widget in a web browser,  All the
rendering is done on the server side and the browser only acts as a display
front end.  Using this you could create an analysis type environment on a
server and view it via a browser.

See example usage with an ipython notebook at:

    https://gist.github.com/ejeschke/6067409

You will need a reasonably modern web browser with HTML5 canvas support.
Tested with Chromium 41.0.2272.76, Firefox 37.0.2, Safari 7.1.6
 __future__ print_function N/A sys os N/A logging N/A threading N/A tornado.web N/A tornado.ioloop ginga AstroImage colors ginga.canvas.CanvasObject get_canvas_types ginga.misc log Task ginga.util catalog iohelper ginga.web.pgw templates js PgHelp Widgets Viewers EnhancedCanvasView N/A N/A Viewers CanvasView N/A embed N/A N/A self width height N/A 600 650 N/A N/A 
        Embed a viewer into a Jupyter notebook.
         IPython.display IFrame N/A N/A IFrame N/A self url width height N/A open N/A N/A self new N/A 1 N/A N/A 
        Open this viewer in a new browser window or tab.
        (requires `webbrowser` module)
         N/A webbrowser N/A N/A N/A webbrowser open N/A self url new new N/A show N/A N/A self N/A N/A N/A 
        Capture the window of a viewer.
         IPython.display Image N/A N/A Image data N/A bytes N/A N/A self get_rgb_image_as_bytes format png format png embed True N/A load_fits N/A N/A self filepath N/A N/A N/A 
        Load a FITS file into the viewer.
         N/A image N/A N/A AstroImage AstroImage logger N/A self logger N/A N/A N/A image load_file filepath N/A N/A N/A self set_image image N/A N/A load load_fits load_hdu N/A N/A self hdu N/A N/A N/A 
        Load an HDU into the viewer.
         N/A image N/A N/A AstroImage AstroImage logger N/A self logger N/A N/A N/A image load_hdu hdu N/A N/A N/A self set_image image N/A load_data N/A N/A self data_np N/A N/A N/A 
        Load raw numpy data into the viewer.
         N/A image N/A N/A AstroImage AstroImage logger N/A self logger N/A N/A N/A image set_data data_np N/A N/A N/A self set_image image N/A add_canvas N/A N/A self tag N/A None N/A N/A my_canvas N/A N/A self get_canvas N/A DrawingCanvas N/A N/A my_canvas get_draw_class drawingcanvas N/A canvas N/A DrawingCanvas N/A N/A N/A canvas enable_draw True N/A N/A N/A canvas enable_edit True N/A N/A N/A canvas ui_setActive True N/A N/A N/A canvas set_surface self N/A N/A N/A canvas register_for_cursor_drawing self N/A N/A N/A my_canvas add canvas tag tag N/A canvas N/A resize N/A N/A self width height N/A N/A N/A N/A N/A self configure_window width height N/A N/A N/A N/A self pgcanvas resize width height N/A app N/A N/A N/A self pgcanvas get_app N/A N/A N/A app do_operation reload_page id N/A N/A self pgcanvas id N/A N/A ImageViewer N/A object N/A __init__ N/A N/A self logger window viewer_class N/A None N/A N/A N/A viewer_class None N/A N/A viewer_class EnhancedCanvasView N/A N/A self logger logger N/A N/A self url N/A window url N/A N/A self drawcolors N/A N/A colors get_colors N/A N/A self dc N/A get_canvas_types N/A N/A self top window N/A N/A N/A N/A self top add_callback close N/A self closed N/A vbox N/A N/A Widgets VBox N/A N/A N/A vbox set_border_width 2 N/A N/A N/A vbox set_spacing 1 N/A fi N/A viewer_class logger N/A N/A fi url N/A self url N/A N/A N/A fi enable_autocuts on N/A N/A N/A fi set_autocut_params zscale N/A N/A N/A fi enable_autozoom on N/A N/A N/A fi set_zoom_algorithm rate N/A N/A N/A fi set_zoomrate 1.4 N/A N/A N/A fi show_pan_mark True N/A N/A N/A fi set_callback drag-drop N/A self drop_file N/A N/A N/A fi set_callback none-move N/A self motion N/A N/A N/A fi set_bg 0.2 0.2 0.2 N/A N/A N/A fi ui_setActive True N/A N/A self fitsimage fi N/A bd N/A N/A fi get_bindings N/A N/A N/A bd enable_all True N/A settings N/A N/A bd get_settings N/A N/A N/A settings set scroll_zoom_direct_scale True N/A canvas N/A N/A N/A self dc DrawingCanvas N/A N/A N/A canvas setSurface fi N/A N/A self canvas canvas N/A private_canvas N/A N/A fi get_canvas N/A N/A N/A private_canvas add canvas N/A N/A N/A canvas ui_setActive True N/A N/A N/A fi set_canvas canvas N/A N/A N/A private_canvas add N/A N/A N/A self dc ColorBar side bottom offset 10 N/A N/A N/A private_canvas add N/A N/A N/A self dc ModeIndicator corner ur fontsize 14 N/A bm N/A N/A fi get_bindmap N/A N/A N/A bm add_callback mode-set N/A N/A N/A N/A args N/A N/A fi redraw whence 3 N/A N/A N/A fi set_desired_size 512 512 N/A w N/A N/A Viewers GingaViewerWidget viewer fi N/A N/A N/A vbox add_widget w stretch 1 N/A N/A self readout N/A N/A Widgets Label N/A N/A N/A vbox add_widget N/A self readout stretch 0 N/A hbox N/A N/A Widgets HBox N/A btn3 N/A N/A Widgets CheckBox I'm using a trackpad N/A N/A N/A btn3 add_callback activated N/A N/A N/A w tf N/A N/A N/A self use_trackpad_cb tf N/A N/A N/A hbox add_widget btn3 N/A N/A N/A hbox add_widget N/A N/A Widgets Label stretch 1 N/A N/A N/A vbox add_widget hbox stretch 0 N/A hbox N/A N/A Widgets HBox N/A N/A N/A hbox add_widget vbox stretch 0 N/A N/A N/A hbox add_widget N/A N/A Widgets Label stretch 1 N/A N/A N/A N/A self top set_widget hbox N/A load_file N/A N/A self filepath N/A N/A N/A image N/A N/A AstroImage AstroImage logger N/A self logger N/A N/A N/A image load_file filepath N/A N/A N/A N/A self fitsimage set_image image N/A N/A N/A N/A self top set_title filepath N/A drop_file N/A N/A self fitsimage paths N/A N/A N/A fileName N/A paths N/A 0 N/A N/A N/A self load_file fileName N/A motion N/A N/A self viewer button data_x data_y N/A N/A N/A N/A N/A value N/A N/A viewer get_data N/A int N/A data_x 0.5 N/A int N/A data_y 0.5 N/A N/A N/A Exception N/A N/A value None N/A N/A fits_x fits_y N/A N/A data_x 1 N/A data_y 1 N/A N/A N/A image N/A N/A viewer get_image N/A N/A image None N/A N/A N/A N/A ra_txt dec_txt N/A N/A image pixtoradec fits_x fits_y format str coords fits N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger warning N/A Bad coordinate conversion: %s N/A str e N/A ra_txt BAD WCS N/A dec_txt BAD WCS N/A text N/A RA: %s  DEC: %s  X: %.2f  Y: %.2f  Value: %s N/A ra_txt dec_txt fits_x fits_y value N/A N/A N/A N/A self readout set_text text N/A use_trackpad_cb N/A N/A self state N/A N/A N/A settings N/A N/A N/A N/A N/A self fitsimage get_bindings get_settings N/A val 1.0 N/A state N/A N/A val 0.1 N/A N/A N/A settings set scroll_zoom_acceleration val N/A closed N/A N/A self w N/A N/A N/A N/A N/A N/A self logger info Top window closed. N/A N/A self top None N/A N/A N/A sys exit N/A N/A FileHandler N/A N/A N/A tornado web RequestHandler N/A initialize N/A N/A self name factory N/A N/A N/A N/A self name name N/A N/A self viewer_factory factory N/A N/A self logger N/A factory logger N/A N/A N/A N/A self logger info filehandler initialize N/A get N/A N/A self N/A N/A N/A N/A N/A N/A self logger info filehandler get N/A wid N/A N/A self get_argument id None N/A window N/A N/A N/A self app get_window wid N/A output N/A N/A window render N/A N/A N/A self write output N/A N/A ViewerFactory N/A object N/A __init__ N/A N/A self logger basedir app thread_pool N/A N/A N/A 
        Constructor parameters:
          `logger` : a logging-module compatible logger object
          `basedir`: directory to which paths requested on the viewer
                        are considered relative to.
         N/A N/A self logger logger N/A N/A self basedir basedir N/A N/A self app app N/A N/A self thread_pool thread_pool N/A N/A self viewers N/A N/A get_basedir N/A N/A self N/A N/A N/A N/A self basedir N/A get_threadpool N/A N/A self N/A N/A N/A N/A self thread_pool N/A get_viewer N/A N/A self v_id N/A N/A N/A 
        Get an existing viewer by viewer id.  If the viewer does not yet
        exist, make a new one.
         N/A N/A N/A N/A N/A self viewers N/A v_id N/A N/A N/A KeyError N/A N/A N/A window N/A N/A N/A self app make_window N/A Viewer %s v_id wid v_id N/A viewer N/A ImageViewer N/A self logger window N/A N/A N/A self viewers N/A v_id viewer N/A viewer N/A N/A WebServer N/A object N/A __init__ N/A N/A self app thread_pool factory host port ev_quit N/A localhost 9909 None N/A N/A N/A self host host N/A N/A self port port N/A N/A self app app N/A N/A self logger N/A app logger N/A N/A self thread_pool thread_pool N/A N/A self factory factory N/A N/A ev_quit None N/A N/A ev_quit N/A N/A threading Event N/A N/A self ev_quit ev_quit N/A N/A self server None N/A start N/A N/A self use_thread no_ioloop N/A True False N/A N/A N/A N/A N/A self thread_pool startall N/A js_path N/A N/A N/A os path dirname N/A js __file__ N/A N/A self server N/A N/A N/A tornado web Application N/A N/A /js/(.*\.js) N/A N/A tornado web StaticFileHandler N/A path js_path N/A /viewer FileHandler N/A dict name Ginga factory N/A self factory N/A /app N/A PgHelp WindowHandler N/A dict name Application url /app app N/A self app N/A /app/socket N/A PgHelp ApplicationHandler N/A dict name Ginga app N/A self app factory N/A self factory logger N/A self logger N/A N/A N/A N/A self server listen N/A self port N/A self host N/A no_ioloop N/A N/A N/A self t_ioloop None N/A N/A N/A self t_ioloop N/A N/A N/A N/A tornado ioloop IOLoop instance N/A use_thread N/A N/A task N/A N/A Task FuncTask2 N/A N/A self t_ioloop start N/A N/A N/A N/A self thread_pool addTask task N/A N/A N/A N/A N/A self t_ioloop start N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self t_ioloop None N/A N/A N/A N/A N/A self t_ioloop stop N/A N/A N/A N/A self thread_pool stopall N/A N/A N/A N/A self ev_quit set N/A get_viewer N/A N/A self v_id N/A N/A IPython.display display HTML N/A v N/A N/A N/A self factory get_viewer v_id N/A url N/A N/A v top url N/A viewer N/A v fitsimage N/A N/A viewer url url N/A viewer N/A N/A make_server N/A N/A logger basedir numthreads host port use_opencv N/A None . 5 localhost 9909 False N/A N/A N/A logger None N/A N/A logger N/A N/A log get_logger ipg null True N/A ev_quit N/A N/A threading Event N/A use_opencv N/A ginga trcalc N/A N/A N/A N/A N/A trcalc use opencv N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger warning N/A Error using opencv: %s N/A str e N/A thread_pool N/A N/A Task ThreadPool numthreads logger ev_quit ev_quit N/A base_url N/A http://%s:%d/app N/A host port N/A app N/A N/A Widgets Application logger logger base_url base_url host host port port N/A factory N/A ViewerFactory logger basedir app thread_pool N/A server N/A WebServer app thread_pool factory host host port port N/A server N/A main N/A N/A options args N/A N/A N/A logger N/A N/A log get_logger ipg options options N/A server N/A make_server logger logger basedir N/A options basedir numthreads N/A options numthreads host N/A options host port N/A options port use_opencv N/A options use_opencv N/A N/A N/A N/A N/A server start use_thread False N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A logger info Interrupted! N/A N/A N/A server stop N/A N/A N/A logger info Server terminating... N/A N/A N/A __name__ __main__ N/A optparse OptionParser N/A usage usage: %prog [options] cmd [args] N/A optprs N/A OptionParser usage usage version %%prog N/A N/A N/A optprs add_option -d --basedir dest basedir metavar DIR default . help Directory which is at the base of file open requests N/A N/A N/A optprs add_option --debug dest debug default False action store_true help Enter the pdb debugger on main() N/A N/A N/A optprs add_option --host dest host metavar HOST default localhost help HOST used to decide which interfaces to listen on N/A N/A N/A optprs add_option --log dest logfile metavar FILE help Write logging output to FILE N/A N/A N/A optprs add_option --loglevel dest loglevel metavar LEVEL type int default N/A logging INFO help Set logging level to LEVEL N/A N/A N/A optprs add_option --numthreads dest numthreads type int default 5 metavar NUM help Start NUM threads in thread pool N/A N/A N/A optprs add_option --stderr dest logstderr default False action store_true help Copy logging also to stderr N/A N/A N/A optprs add_option --opencv dest use_opencv default False action store_true help Use OpenCv acceleration N/A N/A N/A optprs add_option -p --port dest port type int default 9909 metavar PORT help Default PORT to use for the web socket N/A N/A N/A optprs add_option --profile dest profile action store_true default False help Run the profiler on main() N/A N/A options args N/A N/A optprs parse_args N/A N/A sys argv N/A 1 N/A N/A options debug N/A N/A pdb N/A N/A N/A pdb run main(options, args) N/A N/A N/A options profile N/A N/A profile N/A N/A print N/A %s profile: N/A N/A sys argv N/A 0 N/A N/A N/A profile run main(options, args) N/A N/A N/A main options args