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

Adding code cell after non-runnable code cell creates a runnable cell #115773

Closed
gjsjohnmurray opened this issue Feb 4, 2021 · 5 comments
Closed
Assignees
Labels

Comments

@gjsjohnmurray
Copy link
Contributor

Issue Type: Bug

  1. Create a notebook extension in which code cells are set runnable or not runnable when a notebook is opened, based on the language mode of the stored cells.
  2. Click the +Code button after a non-runnable cell.
  3. Observe that the new cell has the same language mode 👍 but it is runnable 👎

VS Code version: Code - Insiders 1.53.0-insider (8490d3d, 2021-02-03T15:53:41.416Z)
OS version: Windows_NT x64 10.0.19042

@vscodebot
Copy link

vscodebot bot commented Feb 4, 2021

@gjsjohnmurray
Copy link
Contributor Author

gjsjohnmurray commented Feb 4, 2021

In contrast, metadata.breakpointMargin does get carried forward to the new code cell 👍

@gjsjohnmurray
Copy link
Contributor Author

Contrast this with what copy+paste does with metadata

#103881 (comment)

@rebornix rebornix assigned roblourens and unassigned rebornix Mar 10, 2021
@roblourens
Copy link
Member

I think this would have been based on the cellRunnable property and require the extension to jump in and fix up runnable, but all of this has been deleted and the runnability is now inferred based on kernel+language, so it should be good now.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@roblourens @rebornix @gjsjohnmurray and others