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

Import ensure_async from jupyter_core #1093

Merged
merged 5 commits into from
Nov 29, 2022

Conversation

davidbrochart
Copy link
Contributor

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.02%. Comparing base (96bcdbb) to head (8f3d9dd).
Report is 265 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1093      +/-   ##
==========================================
+ Coverage   79.99%   80.02%   +0.03%     
==========================================
  Files          68       68              
  Lines        8021     8011      -10     
  Branches     1588     1586       -2     
==========================================
- Hits         6416     6411       -5     
+ Misses       1183     1179       -4     
+ Partials      422      421       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidbrochart
Copy link
Contributor Author

Not sure the test failures are related.
How do we ensure jupyter-core v.5.0.0 is not installed?

@blink1073
Copy link
Contributor

blink1073 commented Nov 28, 2022

I think jupyter_core>=4.12,!=~5.0

@davidbrochart
Copy link
Contributor Author

Should we just pin jupyter_core>=4.12,<5, and when we switch to v5 we'll pin jupyter_core>=5.1?

@blink1073
Copy link
Contributor

Should we just pin jupyter_core>=4.12,<5, and when we switch to v5 we'll pin jupyter_core>=5.1?

I'd rather not pin, since we want folks to try core 5.x and its new features.

@blink1073
Copy link
Contributor

I'll have to update the min versions script in maintainer tools though to handle more complex cases like this...

@blink1073 blink1073 enabled auto-merge (squash) November 29, 2022 02:28
@blink1073 blink1073 merged commit 5965c7f into jupyter-server:main Nov 29, 2022
@davidbrochart davidbrochart deleted the sync_async branch November 29, 2022 07:58
@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 7, 2022

Working on the conda-forge package... what exactly is intended by the jupyter_core pin?

@davidbrochart
Copy link
Contributor Author

jupyter-core v4.12 and v5.1 have the ensure_async and run_sync common functions that are used in jupyter-server, jupyter-client and nbclient. Each one was previously reimplementing the logic separately.

@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 7, 2022

ok, cheers. Going to ship the less-ambiguous:

jupyter_core >=4.12,!=5.0.0,<6

@davidbrochart
Copy link
Contributor Author

Sounds good, but maybe !=5.0.* instead of !=5.0.0?
And I thought we were not pinning upper bounds any more?

@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 7, 2022

great, i'll remove the top pin.

@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 7, 2022

Here's the line in question:
conda-forge/jupyter_server-feedstock#106 (review)

@transaxon
Copy link

Looks as if this may have caused an error under Ubuntu 20.04 running under WSL2

$ ImportError: cannot import name 'ensure_async' from 'jupyter_core.utils'

@davidbrochart
Copy link
Contributor Author

What version of jupyter_core do you have?

@transaxon
Copy link

mjw@TRANSAXON-SEROTONIN:~$ jupyter --version
Selected Jupyter core packages...
IPython : 8.4.0
ipykernel : 6.13.0
ipywidgets : 8.0.2
jupyter_client : 7.3.1
jupyter_core : 4.10.0
jupyter_server : 2.0.1
jupyterlab : not installed
nbclient : not installed
nbconvert : not installed
nbformat : 5.7.0
notebook : 6.0.3
qtconsole : 5.3.0
traitlets : 5.2.2

@transaxon
Copy link

It's not at all clear to me why it thinks jupyterlab nbclient and nbconvert aren't installed

@davidbrochart
Copy link
Contributor Author

jupyter-server 2.0.1 requires jupyter_core>=4.12, try creating a new environment.

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

Successfully merging this pull request may close these issues.

5 participants