
    gH                         d dl Z d dlmZ d dlmZ d dlZd dlmZ  ej                  d      Z	 ej                  d        ej                  d        ej                  d       d	 Z
y)
    N)Path)TemporaryDirectory)subprocess_run_for_testingnbformat	nbconvert	ipykernelmatplotlib_inlinec                     t        t              j                  dz  } t               5 }t        |d      }t	        ddddddd	t        |      t        |       g	i t        j                  d
|id       |j                         5 }t        j                  |t        j                        }d d d        d d d        j                  D cg c]*  }|j                  dg       D ]  }|j                  dk(  r| , }}}|rJ dd l}|j                   d d dk\  rd}	nd}	|j                  d   d   }
|
d   d   d   d|	 dk(  sJ |j                  d   d   d   d   }|d   dk(  sJ d|v sJ y # 1 sw Y   xY w# 1 sw Y   xY wc c}}w )Nztest_inline_01.ipynbz	out.ipynbjupyterr   z--tonotebookz	--executez!--ExecutePreprocessor.timeout=500z--output
IPYTHONDIRT)envcheckoutputserrorr      )      inlinez)module://matplotlib_inline.backend_inlinedataz
text/plain'   z!<Figure size 300x200 with 1 Axes>z	image/png)r   __file__parentr   r   strosenvironopenr   readcurrent_nbformatcellsgetoutput_typeIPythonversion_info)nb_pathtmpdirout_pathoutnbcelloutputerrorsr$   expected_backendbackend_outputsimages               a/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/matplotlib/tests/test_backend_inline.py
test_ipynbr2      s   8n##&<<G		 
?,"VZ=XG6 52::4|V4	 ]]_ 	?sH$=$=>B	?
? "$ 0B8O 0f##w.  0f 0F 0:BQ7*# Ghhqk),O1f%l3;K:LA7NNNNHHQK	"1%f-E"EEEE%'	? 	?
? 
?0s*   AE1%E%&E1/E=%E.	*E11E:)r   pathlibr   tempfiler   pytestmatplotlib.testingr   importorskipr   r2        r1   <module>r:      s\    	  '  96z*   K     K     ' ( r9   