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

Ensure kernel points to live kernel connection when starting remote kernels #10573

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DonJayamanne
Copy link
Contributor

Fixes #9865

@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2022

Codecov Report

Merging #10573 (b37d24c) into main (1d727e8) will increase coverage by 0%.
The diff coverage is 70%.

@@           Coverage Diff           @@
##            main   #10573    +/-   ##
=======================================
  Coverage     63%      63%            
=======================================
  Files        477      479     +2     
  Lines      34162    34378   +216     
  Branches    5546     5576    +30     
=======================================
+ Hits       21597    21812   +215     
+ Misses     10506    10503     -3     
- Partials    2059     2063     +4     
Impacted Files Coverage Δ
src/kernels/types.ts 100% <ø> (ø)
src/notebooks/controllers/types.ts 100% <ø> (ø)
src/kernels/notebookControllerWrapper.ts 34% <34%> (ø)
src/kernels/common/delayedFutureExecute.ts 5% <50%> (+1%) ⬆️
src/kernels/kernelProvider.base.ts 93% <68%> (-3%) ⬇️
src/notebooks/controllers/kernelConnector.ts 82% <71%> (-1%) ⬇️
...rc/notebooks/controllers/controllerRegistration.ts 85% <80%> (-2%) ⬇️
src/kernels/kernelConnectionMetadataWrapper.ts 80% <80%> (ø)
src/interactive-window/interactiveWindow.ts 75% <85%> (+<1%) ⬆️
...ebooks/controllers/notebookIPyWidgetCoordinator.ts 89% <88%> (+2%) ⬆️
... and 41 more

@DonJayamanne DonJayamanne marked this pull request as ready for review June 26, 2022 22:34
@DonJayamanne DonJayamanne requested a review from a team as a code owner June 26, 2022 22:34
@IanMatthewHuff
Copy link
Member

Looks like there is a new failed test: 3rd Party Kernel Service API Start Kernel

@DonJayamanne DonJayamanne force-pushed the issue9865 branch 2 times, most recently from 8d88724 to 0d4a271 Compare June 28, 2022 18:08
@DonJayamanne DonJayamanne force-pushed the issue9865 branch 4 times, most recently from 00b7111 to 77657b1 Compare July 1, 2022 07:19
// However its possble the kernel is not yet ready at that point in time.
// We could solve this issue easily by not executing cells, until the webview is ready,
// however that would have significant performance implications.
// Hence for ipywidgets, once the webview has completely been initialized, we can attempt to re-render the widgets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this!! Thank you 🙏

amunger
amunger previously approved these changes Jul 1, 2022
const translatedConnection = Object.freeze(readWriteConnection) as KernelConnectionMetadata;

const translatedConnection = Object.freeze(
JSON.parse(JSON.stringify(connection))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

rchiodo
rchiodo previously approved these changes Jul 1, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2022

I wonder if we could tag all of this code with 'Unnecessary if we could get a new API for creating controllers'? Maybe a comment in some key places?

@DonJayamanne DonJayamanne force-pushed the issue9865 branch 3 times, most recently from 0dddb70 to 2ec51f2 Compare July 17, 2022 23:55
@DonJayamanne DonJayamanne force-pushed the issue9865 branch 3 times, most recently from 61694c9 to 5c0c2ec Compare July 22, 2022 22:49
@DonJayamanne DonJayamanne force-pushed the issue9865 branch 3 times, most recently from 282dd79 to e1f5547 Compare August 4, 2022 17:11
@DonJayamanne DonJayamanne force-pushed the issue9865 branch 4 times, most recently from d33ce68 to acaba16 Compare August 24, 2022 22:57
@DonJayamanne DonJayamanne force-pushed the issue9865 branch 3 times, most recently from 7e8c63d to be2c891 Compare September 2, 2022 06:45
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.

Active/Live Remote Kernel instance is not selected after it is started
6 participants