
    g                         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       d Z
y)	    N)Path)TemporaryDirectory)subprocess_run_for_testingnbformat	nbconvert	ipykernelc                     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 y # 1 sw Y   xY w# 1 sw Y   xY wc c}}w )Nztest_nbagg_01.ipynbz	out.ipynbjupyterr   z--tonotebookz	--executez!--ExecutePreprocessor.timeout=500z--output
IPYTHONDIRT)envcheckoutputserrorr      )      nbAggdataz
text/plain')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_outputss              `/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/matplotlib/tests/test_backend_nbagg.py
test_ipynbr/      sr   8n##&;;G		 	?,"VZ=XG6 52::4|V4	 ]]_ 	?sH$=$=>B	?	? "$ 0B8O 0f##w.  0f 0F 0:BQ7*% #hhqk),O1f%l3;K:LA7NNNN	? 	?	? 	?0s*   AE	%D=&E	/E=E	E		E)r   pathlibr   tempfiler   pytestmatplotlib.testingr   importorskipr   r/        r.   <module>r7      sL    	  '  96z*   K     K  
Or6   