| Server IP : 35.80.110.71 / Your IP : 216.73.217.120 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/matplotlib/backends/__pycache__/ |
Upload File : |
�
G8�c- � �D � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
mZmZ ddl
mZ ddlmZ ddlmZmZ d d
lmZmZmZ d dlmZmZ d� Zd
ddddddd�Z G d� de� Z G d� de� Z G d� de� Z G d� d� Zej@ G d� de� � Z!y)z,Interactive figures in the IPython notebook.� )� b64encodeN)�Comm)�display�
Javascript�HTML)�is_interactive��Gcf)�_Backend�NavigationToolbar2� )�FigureCanvasWebAggCore�FigureManagerWebAgg�NavigationToolbar2WebAgg)�TimerTornado�TimerAsyncioc � � t j � D � cg c]^ } dj | j j j � xs dj | j � | j �� ��` }} t � s+|j dt t j � � �� dj |� S c c} w )z�
Return a string showing the figure and connection status for the backend.
This is intended as a diagnostic tool, and not for general use.
z{fig} - {socket}z Figure {})�fig�socketzFigures pending show: �
)
r
�get_all_fig_managers�format�canvas�figure� get_label�num�web_socketsr �append�len�figs�join)�manager�results �C/usr/lib/python3/dist-packages/matplotlib/backends/backend_nbagg.py�connection_infor% s� � � �/�/�1��
� �!�!����&�&�0�0�2� 4��&�&�w�{�{�3��&�&� "� (��F� � ���
�
�.�s�3�8�8�}�o�>�?��9�9�V����s �A#Cz
fa fa-homezfa fa-arrow-leftzfa fa-arrow-rightzfa fa-square-ozfa fa-arrowszfa fa-floppy-o)�home�back�forward�zoom_to_rect�move�downloadNc � � e Zd Zej dz D � �����cg c] \ }}}}|t
v r
||t
| |f�� c}}}}}} Zyc c}}}}}} w )�
NavigationIPy))�Downloadz
Download plotr+ r+ N)�__name__�
__module__�__qualname__r � toolitems�_FONT_AWESOME_CLASSES)�.0�text�tooltip_text�
image_file�name_of_methodr3 s 000000r$ r- r- 5 sZ � � (�1�1�M�N�9� 9�C�T�<��^� �"7�7� ��'�
�3�^�E� 9�I�� 9s �!Ar- c � � � e Zd ZexZZ� fd�Zed� � Zd� Z d� Z
d� Zed� � Z
ed� fd� � Zd� Zd � Zd
� Zd� Z� xZS )
�FigureManagerNbAggc �4 �� d| _ t �| � ||� y )NF)�_shown�super�__init__)�selfr r � __class__s �r$ r>