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

Use jupyer-kernel-gateway for ipython executor #1748

Merged
merged 25 commits into from
Feb 23, 2024

Conversation

jackgerrits
Copy link
Member

Why are these changes needed?

This uses the jupyter-kernel-gateway to manage kernels for the ipython based executor. This is desirable as it allows us to have a common interface to interact with kernels irrespective of where they are executing. In this PR I migrate the embedded executor. I will follow this up with a docker container based version.

Related issue number

#1421

Checks

@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2024

Codecov Report

Attention: Patch coverage is 13.86139% with 261 lines in your changes are missing coverage. Please review.

Project coverage is 47.95%. Comparing base (ac15996) to head (4543624).

Files Patch % Lines
autogen/coding/jupyter/jupyter_client.py 10.09% 95 Missing and 3 partials ⚠️
autogen/coding/jupyter_code_executor.py 12.37% 85 Missing ⚠️
autogen/coding/jupyter/local_jupyter_server.py 0.00% 69 Missing and 1 partial ⚠️
autogen/coding/factory.py 0.00% 2 Missing and 1 partial ⚠️
autogen/coding/embedded_ipython_code_executor.py 60.00% 2 Missing ⚠️
autogen/coding/jupyter/__init__.py 50.00% 2 Missing ⚠️
autogen/coding/jupyter/base.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1748      +/-   ##
==========================================
+ Coverage   39.13%   47.95%   +8.82%     
==========================================
  Files          57       62       +5     
  Lines        6174     6473     +299     
  Branches     1384     1554     +170     
==========================================
+ Hits         2416     3104     +688     
+ Misses       3564     3118     -446     
- Partials      194      251      +57     
Flag Coverage Δ
unittests 47.87% <13.86%> (+8.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@jackgerrits
Copy link
Member Author

Most of these change should be covered by the existing tests - but I don't think they are running since the dependencies are missing on the build machines

@ekzhu ekzhu self-requested a review February 21, 2024 17:33
@sonichi sonichi added this pull request to the merge queue Feb 23, 2024
Merged via the queue into microsoft:main with commit fbc2f6e Feb 23, 2024
49 of 57 checks passed
thinkall pushed a commit that referenced this pull request Feb 24, 2024
* checkpoint async based

* Implement jupyter client and use jupyer gateway

* update deps

* address comments

* add missing parenthesis

* Update build.yml

* CI fixes

* change requirement name

* debug

* print stderr

* dont seek

* show token

* mitigaton for windows bug

* use hex token to avoid - in token

* formatting

* put back in place original while the windows bug exists

* lint

* Update autogen/coding/jupyter_code_executor.py

* Update jupyter_code_executor.py

* Update test_embedded_ipython_code_executor.py

* Update setup.py

* Update build.yml

* fix nameerror

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* checkpoint async based

* Implement jupyter client and use jupyer gateway

* update deps

* address comments

* add missing parenthesis

* Update build.yml

* CI fixes

* change requirement name

* debug

* print stderr

* dont seek

* show token

* mitigaton for windows bug

* use hex token to avoid - in token

* formatting

* put back in place original while the windows bug exists

* lint

* Update autogen/coding/jupyter_code_executor.py

* Update jupyter_code_executor.py

* Update test_embedded_ipython_code_executor.py

* Update setup.py

* Update build.yml

* fix nameerror

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-execution execute generated code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants