
    Mh8                        U d dl m Z  d dlZd dlmZ d dlmZ dd                     e j                    j        dz
            d                     e j                    j        dz
            d	d
dg ddZ	ee
d<   ej        dk    rDe	d                             dg           d e	d                                         D             e	d<   ne	d                             g d           defdZdS )    )datetimeN)choice)AnyzHappy new year!uH   IPython's first line of code was written {} years ago by Fernando Pérezi  zqIPython 0.0.2 was announced {} years ago: https://mail.python.org/pipermail/python-list/2001-December/093408.htmlzKToday is International Women's Day: https://www.internationalwomensday.com/zHappy International Transgender Day of Visibility! You are valid. You matter. https://en.wikipedia.org/wiki/International_Transgender_Day_of_Visibility))   r   )
      )   	   )      )r      )zRUse `F2` or %edit with no arguments to open an empty editor with a temporary file.zRun your doctests from within IPython for development and debugging. The special %doctest_mode command toggles a mode where the prompt, output and exceptions display matches as closely as possible that of the default Python interpreter.zYou can use `files = !ls *.png`zUUse the IPython.lib.demo.Demo class to load any Python script as an interactive demo.zBPut a ';' at the end of a line to suppress the printing of output.z:You can use Ctrl-O to force a new line in terminal IPythonzHUse `object?` to see the help on `object`, `object??` to view its sourcez1`?` alone on a line will brings up IPython's helpzEYou can use `%hist` to view history, see the options with `%history?`zLYou can change the editing mode of IPython to behave more like vi, or emacs.z7IPython 9.0+ has hooks to integrate AI/LLM completions.z_Use `%timeit` or `%%timeit`, and the  `-r`, `-n`, and `-o` options to easily profile your code.zNUse `ipython --help-all | less` to view all the IPython configuration options.zLUse `--theme`, or the `%colors` magic to change IPython's themes and colors.zgThe `%timeit` magic has a `-o` flag, which returns the results, making it easy to plot. See `%timeit?`.)
every_yearrandom_tipsntr   zyWe can't show you all tips on Windows as sometimes Unicode characters crash the Windows console, please help us debug it.c                 L    i | ]!\  }}t          d  |D                       ||"S )c              3   <   K   | ]}t          |          d k     V  dS )   N)ord).0chars     Q/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/core/tips.py	<genexpr>z<dictcomp>.<genexpr>b   s,      --4s4yy3------    )all)r   kvs      r   
<dictcomp>r   _   sK       Aq--1-----	1  r   r   )uQ   You can use LaTeX or Unicode completion, `\alpha<tab>` will insert the α symbol.ue   You can find how to type a LaTeX symbol by back-completing it, eg `\θ<tab>` will expand to `\theta`.uv   You can find how to type a Unicode symbol by back-completing it, eg `\Ⅷ<tab>` will expand to `\ROMAN NUMERAL EIGHT`.u   IPython supports combining unicode identifiers, eg F\vec<tab> will become F⃗, useful for physics equations. Play with \dot \ddot and others.returnc                      t          j                    } | j        | j        }}||ft          d         v rt          d         ||f         S t          t          d                   S )Nr   r   )r   nowmonthdayr   r   )current_dater"   r#   s      r   pick_tipr%   o   sV    <>>L#\%53Es|u\***\"E3<00%/"""r   )r   osr   r   typingr   formatr!   yearr   __annotations__nameextenditemsstrr%    r   r   <module>r0      s          				            
 "T V\\HLNN$&
 
   F  FHLNN$&
 
 Y ew< <z  P Ps P P Pd 7d??	(O H	
   ,'--//  E, 
(O	
 	
 	
  ## # # # # # #r   