Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Ipython.utils.timing work with jupyterlite #13050

Merged
merged 4 commits into from Jul 31, 2021
Merged

Conversation

dsblank
Copy link
Contributor

@dsblank dsblank commented Jul 10, 2021

JupyterLite has a resource, but not getrusage(). This make the code a little more general.

JupyterLite has a resource, but not getrusage(). This make the code a little more general.
@MrMino
Copy link
Member

MrMino commented Jul 13, 2021

I'm not sure if I understand why this needs to be so - could you please elaborate the description? I haven't used jupyterlite yet, much less read through its code.

@dsblank
Copy link
Contributor Author

dsblank commented Jul 14, 2021

Sure! The code was previously written so that it would check to see if it could import resource and decide to use the fallbacks. jupyterlite has a resource module, but it doesn't have a getrusage method. This extends the previous behavior to also work in these types of environments.

Thanks for the review!

@MrMino MrMino added this to the 7.26 milestone Jul 21, 2021
@Carreau
Copy link
Member

Carreau commented Jul 31, 2021

Thanks both ! Merging this and releasing soon.

@Carreau Carreau merged commit 9c2eee6 into ipython:master Jul 31, 2021
meeseeksmachine pushed a commit to meeseeksmachine/ipython that referenced this pull request Jul 31, 2021
Carreau added a commit that referenced this pull request Jul 31, 2021
…050-on-7.x

Backport PR #13050 on branch 7.x (Make Ipython.utils.timing work with jupyterlite)
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.

None yet

3 participants