Skip to content

Update other cells in cell execution #14240

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

Merged

Conversation

DonJayamanne
Copy link

Current when we need to update output of another cell when using IPython.display, it doesnt work properly with native notebooks.
THis is because we await in cellExecution class for updates to the cells.
While the above updates are pending, the IOPub messages from kernel are handled elsewhere and we update other cells, hence we have multiple updates going on and in parallel. This results in output not getting displayed.

Moved the code to listen to iopub messages & handle display updates to the cell execution (we were already listening to those messages, just had to move the code to perform the updates).

Also found that the onIoPubMessage was not use anywhere else, hence removed it

@DonJayamanne DonJayamanne force-pushed the updateDisplayIdInCellExecution branch from 2f15899 to 52ddfbd Compare October 2, 2020 22:02
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

codecov-commenter commented Oct 2, 2020

Codecov Report

Merging #14240 into main will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #14240   +/-   ##
=======================================
  Coverage   59.95%   59.96%           
=======================================
  Files         706      706           
  Lines       39183    39179    -4     
  Branches     5681     5681           
=======================================
- Hits        23493    23492    -1     
+ Misses      14453    14450    -3     
  Partials     1237     1237           
Impacted Files Coverage Δ
src/client/datascience/baseJupyterSession.ts 57.33% <ø> (+0.52%) ⬆️
src/client/datascience/types.ts 100.00% <ø> (ø)
src/client/common/utils/platform.ts 68.00% <0.00%> (-4.00%) ⬇️
src/client/datascience/notebook/helpers/helpers.ts 37.29% <0.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8349588...32cda38. Read the comment docs.

@DonJayamanne DonJayamanne merged commit 1626cf9 into microsoft:main Oct 2, 2020
@DonJayamanne DonJayamanne deleted the updateDisplayIdInCellExecution branch October 2, 2020 23:27
DonJayamanne added a commit that referenced this pull request Oct 30, 2020
* Remove cell index property and use build in prop (#14239)
* Update other cells in cell execution (#14240)
* Tests for prompting to install missing ipykernel (#14266)
* Treat Native notebook tests as VS Code tests (#14282)
* Fixes to blowing away of kernel info & not using right startup info (… …
* Default cell language for native notebooks (#14314)
* Ignore formatting in ipynb when dealing with trust (#14333)
* Fixes to trust service (#14352)
* Change `IPython kernel` to `Jupyter kernel` (#14375)
* Trust for native notebooks (#14353)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants