Format: application/x-python-code
1 o
2
3 ��h� � @ s\ d Z ddlZddlmZ ddlmZ ddlmZ ddlZ G dd� de�Z
4 G d d
5 � d
6 e
7 �ZdS )a� An interface for publishing rich data to frontends.
8
9 There are two components of the display system:
10
11 * Display formatters, which take a Python object and compute the
12 representation of the object in various formats (text, HTML, SVG, etc.).
13 * The display publisher that is used to send the representation data to the
14 various frontends.
15
16 This module defines the logic display publishing. The display publisher uses
17 the ``display_data`` message type that is defined in the IPython messaging
18 spec.
19 � N)�Configurable)�List� )�publish_display_datac sJ e Zd ZdZd� fdd� Zddd�Zdddd�dd
20 d�Zddd
21 �Z� ZS )�DisplayPublisherz�A traited class that publishes display data to frontends.
22
23 Instances of this class are created by the main IPython object and should
24 be accessed there.
25 Nc s || _ t� j|i |�� d S �N)�shell�super�__init__)�selfr �args�kwargs�� __class__� �Mc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/displaypub.pyr
26 ) s zDisplayPublisher.__init__c C s<