Show More
@@ -48,7 +48,7 _tips: Any = { | |||
|
48 | 48 | ( |
|
49 | 49 | 10, |
|
50 | 50 | 11, |
|
51 | ): "IPython first line of code was written {} years ago by Fernando Pérez".format( | |
|
51 | ): "IPython's first line of code was written {} years ago by Fernando Pérez".format( | |
|
52 | 52 | datetime.now().year - 2001 |
|
53 | 53 | ), |
|
54 | 54 | ( |
@@ -60,11 +60,11 _tips: Any = { | |||
|
60 | 60 | ( |
|
61 | 61 | 3, |
|
62 | 62 | 8, |
|
63 |
): "Today is |
|
|
63 | ): "Today is International Women's Day: https://www.internationalwomensday.com/", | |
|
64 | 64 | ( |
|
65 | 65 | 3, |
|
66 | 66 | 31, |
|
67 |
): "Happy |
|
|
67 | ): "Happy International Transgender Day of Visibility! You are valid. You matter. https://en.wikipedia.org/wiki/International_Transgender_Day_of_Visibility", | |
|
68 | 68 | }, |
|
69 | 69 | "random": [ |
|
70 | 70 | "Use `F2` or %edit with no arguments to open an empty editor with a temporary file.", |
@@ -73,22 +73,22 _tips: Any = { | |||
|
73 | 73 | "Use the IPython.lib.demo.Demo class to load any Python script as an interactive demo.", |
|
74 | 74 | "Put a ';' at the end of a line to suppress the printing of output.", |
|
75 | 75 | "You can use Ctrl-O to force a new line in terminal IPython", |
|
76 |
"Use `object?` to see the help on `object`, `object??` to view it |
|
|
76 | "Use `object?` to see the help on `object`, `object??` to view its source", | |
|
77 | 77 | "`?` alone on a line will brings up IPython's help", |
|
78 | 78 | "You can use `%hist` to view history, see the options with `%history?`", |
|
79 | 79 | "You can change the editing mode of IPython to behave more like vi, or emacs.", |
|
80 |
"IPython 9.0+ ha |
|
|
80 | "IPython 9.0+ has hooks to integrate AI/LLM completions.", | |
|
81 | 81 | "Use `%timeit` or `%%timeit`, and the `-r`, `-n`, and `-o` options to easily profile your code.", |
|
82 |
"Use `ipython --help-all | less` to view all the IPython configuration |
|
|
83 |
"Use `--theme`, or the `%colors` magic to change |
|
|
84 |
"The `%timeit` magic has a |
|
|
82 | "Use `ipython --help-all | less` to view all the IPython configuration options.", | |
|
83 | "Use `--theme`, or the `%colors` magic to change IPython's themes and colors.", | |
|
84 | "The `%timeit` magic has a `-o` flag, which returns the results, making it easy to plot. See `%timeit?`.", | |
|
85 | 85 | ], |
|
86 | 86 | } |
|
87 | 87 | |
|
88 | 88 | if os.name == "nt": |
|
89 | 89 | _tips["random"].extend( |
|
90 | 90 | [ |
|
91 |
"We can't show you all tips on |
|
|
91 | "We can't show you all tips on Windows as sometimes Unicode characters crash the Windows console, please help us debug it." | |
|
92 | 92 | ] |
|
93 | 93 | ) |
|
94 | 94 | # unicode may crash windows console, so we filter out tips with non-ASCII characters. |
@@ -100,10 +100,10 if os.name == "nt": | |||
|
100 | 100 | else: |
|
101 | 101 | _tips["random"].extend( |
|
102 | 102 | [ |
|
103 |
"You can use |
|
|
104 |
"You can find how to type a |
|
|
105 |
"You can find how to type a |
|
|
106 | "IPython support combining unicode identifiers, F\\vec<tab> will become F⃗, useful for physics equations. Play with \\dot \\ddot and others.", | |
|
103 | "You can use LaTeX or Unicode completion, `\\alpha<tab>` will insert the α symbol.", | |
|
104 | "You can find how to type a LaTeX symbol by back-completing it, eg `\\θ<tab>` will expand to `\\theta`.", | |
|
105 | "You can find how to type a Unicode symbol by back-completing it, eg `\\Ⅷ<tab>` will expand to `\\ROMAN NUMERAL EIGHT`.", | |
|
106 | "IPython supports combining unicode identifiers, eg F\\vec<tab> will become F⃗, useful for physics equations. Play with \\dot \\ddot and others.", | |
|
107 | 107 | ] |
|
108 | 108 | ) |
|
109 | 109 |
General Comments 0
You need to be logged in to leave comments.
Login now