File: ipython_terminal.rst

package info (click to toggle)
glueviz 0.14.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,280 kB
  • sloc: python: 41,995; makefile: 138; sh: 63
file content (26 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Using the IPython terminal in Glue
==================================

Glue includes a button to open an IPython terminal window:

.. image:: images/ipython_button.png
   :align: center

This gives you programmatic access to Glue data. A number of variables are
available by default (these are also listed when you open the terminal):

  * ``dc`` / ``data_collection`` refer to the central
    :class:`~glue.core.data_collection.DataCollection`, which is an object that
    holds all of the datasets, subsets, and data links

  * ``hub`` is the main communication hub.

  * ``application`` is the top level
    :class:`~glue.app.qt.application.GlueApplication`, which has access to plot
    windows (among other things)

Additionally, you can drag datasets and subsets into the terminal window, to
easily assign them new variable names.

Most of your interactions will likely be with data objects and the data
collection, so let's take a look at these in the next section!