pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ipython/ipython/pull/15127

com/assets/global-0bd78641c0a1f3e0.css" /> Improve %timeit documentation example with -n and -r options by zivkoss · Pull Request #15127 · ipython/ipython · GitHub
Skip to content

Improve %timeit documentation example with -n and -r options#15127

Open
zivkoss wants to merge 1 commit intoipython:mainfrom
zivkoss:fix/neca
Open

Improve %timeit documentation example with -n and -r options#15127
zivkoss wants to merge 1 commit intoipython:mainfrom
zivkoss:fix/neca

Conversation

@zivkoss
Copy link
Copy Markdown

@zivkoss zivkoss commented Feb 12, 2026

Description

Updated the %timeit documentation example to demonstrate how to control
both the number of runs (-r) and executions per run (-n) for more stable
timing results.

Changes

  • Added code example:
    %timeit -n5 -r3 sum(range(1000))
  • Clarified explanatory text around repeated measurements.

Why

Makes the docs more explicit for users learning about %%timeit and timing stability.

@zivkoss
Copy link
Copy Markdown
Author

zivkoss commented Feb 12, 2026

This PR improves the %timeit example and explanation for clarity.

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 18, 2026

This pull requests show no changes, did you commit / push correctly ?

@zivkoss
Copy link
Copy Markdown
Author

zivkoss commented Feb 19, 2026

I'll check it out, sorry if I missed something.

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Mar 25, 2026

I still see no changes, I'm going to close for now, let me know if this need to be re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy