← Back
Editing: displaypub.cpython-311.pyc
� �@�cP � �n � d Z ddlZddlmZ ddlmZ ddlmZ G d� de� � Z G d � d e� � Z dS )a� An interface for publishing rich data to frontends. There are two components of the display system: * Display formatters, which take a Python object and compute the representation of the object in various formats (text, HTML, SVG, etc.). * The display publisher that is used to send the representation data to the various frontends. This module defines the logic display publishing. The display publisher uses the ``display_data`` message type that is defined in the IPython messaging spec. � N)�Configurable)�List� )�publish_display_datac �F � � e Zd ZdZd � fd� Zd d�Zdddd�dd�Zd d �Z� xZS )�DisplayPublisherz�A traited class that publishes display data to frontends. Instances of this class are created by the main IPython object and should be accessed there. Nc �H �� || _ t � � j |i |�� d S �N)�shell�super�__init__)�selfr �args�kwargs� __class__s ��9/usr/lib/python3/dist-packages/IPython/core/displaypub.pyr zDisplayPublisher.__init__'