Title: %%timeit could use local scope. · Issue #10556 · ipython/ipython · GitHub
Open Graph Title: %%timeit could use local scope. · Issue #10556 · ipython/ipython
X Title: %%timeit could use local scope. · Issue #10556 · ipython/ipython
Description: You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs. I believe a well placed @needs_local_scope and modification to timeit should allow that.
Open Graph Description: You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs. I believe a well placed @needs_local_scope and modification t...
X Description: You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs. I believe a well placed @needs_local_scope and modificati...
Opengraph URL: https://github.com/ipython/ipython/issues/10556
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"%%timeit could use local scope.","articleBody":"You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs.\r\n\r\nI believe a well placed `@needs_local_scope` and modification to timeit should allow that. ","author":{"url":"https://github.com/Carreau","@type":"Person","name":"Carreau"},"datePublished":"2017-05-12T22:21:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/10556/ipython/issues/10556"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c350fd90-56e1-754d-f2ea-98d9c92f9360 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A146:31C072:5C92D6:7D5050:6A4D40AD |
| html-safe-nonce | 9fd8d547b02304be4e7cf2b2f42bc0dc1f3ad203d57f8f5ae429b81cbe9211f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTQ2OjMxQzA3Mjo1QzkyRDY6N0Q1MDUwOjZBNEQ0MEFEIiwidmlzaXRvcl9pZCI6IjY3MjM4OTgzNDAyMTQxMjg4MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47e148139eed210b419fdd90a2b5088367f9a95c304505d0ad1ca88fb73dd2fe |
| hovercard-subject-tag | issue:228421740 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/10556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a6920f99341280fbf6d57bc37b75e214045cd81e81e865dc24cdf9ab05d32a2/ipython/ipython/issues/10556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a6920f99341280fbf6d57bc37b75e214045cd81e81e865dc24cdf9ab05d32a2/ipython/ipython/issues/10556 |
| og:image:alt | You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs. I believe a well placed @needs_local_scope and modification t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Carreau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width