Skip to content

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

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

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

Conversation

@zivkoss

@zivkoss zivkoss commented Feb 12, 2026

Copy link
Copy Markdown

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

zivkoss commented Feb 12, 2026

Copy link
Copy Markdown
Author

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

@Carreau

Carreau commented Feb 18, 2026

Copy link
Copy Markdown
Member

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

@zivkoss

zivkoss commented Feb 19, 2026

Copy link
Copy Markdown
Author

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

@Carreau

Carreau commented Mar 25, 2026

Copy link
Copy Markdown
Member

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