
    ;;i8                        U d dl m Z  d dlZd dlmZ d dlmZ ddj                   e j                         j                  dz
        dj                   e j                         j                  dz
        d	d
dg ddZ	ee
d<   ej                  dk(  rOe	d   j                  dg       e	d   j                         D  ci c]  \  } } ed |D              r| | c}} e	d<   ne	d   j                  g d       defdZyc c}} w )    )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.r   c              3   8   K   | ]  }t        |      d k    yw)   N)ord).0chars     N/home/rose/Desktop/poly/venv/lib/python3.12/site-packages/IPython/core/tips.py	<genexpr>r   b   s     -14s4y31s   )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##\%5%53Es|u\**\"E3<00%/""    )r   osr   r   typingr   formatr   yearr   __annotations__nameextenditemsallstrr   )kvs   00r   <module>r-      s1    	  
 "T V\\HLLN$&
   F  FHLLN$&
 Y ew<zPs Pd 77d?	(O H	
 ,'--//DAq-1-- 	
1/E, 
(O	
## #!s   :C;