summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Bussonnier <bussonniermatthias@gmail.com>2022-10-20 19:40:30 +0200
committerGitHub <noreply@github.com>2022-10-20 10:40:30 -0700
commit48b204b641e899ee649eb57ad0652312c083067e (patch)
treeddea20dd69d213da749da7835705addb843dc458
parent09a375b09cb56dfc0f4ee037b0f6d41b89302f38 (diff)
downloadnumpy-48b204b641e899ee649eb57ad0652312c083067e.tar.gz
DOC: remove mention of `ipython -p numpy`. (#22463)
I don't think this has worked in the past 10 years. Also update because now we do have multiline past in the terminal.
-rw-r--r--numpy/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 3260046d6..22c90677e 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -85,10 +85,11 @@ __version__
Viewing documentation using IPython
-----------------------------------
-Start IPython with the NumPy profile (``ipython -p numpy``), which will
-import `numpy` under the alias ``np``. Then, use the ``cpaste`` command to
-paste examples into the shell. To see which functions are available in
-`numpy`, type ``np.<TAB>`` (where ``<TAB>`` refers to the TAB key), or use
+
+Start IPython and import `numpy` usually under the alias ``np``: `import
+numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste
+examples into the shell. To see which functions are available in `numpy`,
+type ``np.<TAB>`` (where ``<TAB>`` refers to the TAB key), or use
``np.*cos*?<ENTER>`` (where ``<ENTER>`` refers to the ENTER key) to narrow
down the list. To view the docstring for a function, use
``np.cos?<ENTER>`` (to view the docstring) and ``np.cos??<ENTER>`` (to view