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

Closing and reopening a notebook doesn't reset execution count. #3014

Closed
greazer opened this issue Sep 24, 2019 · 3 comments
Closed

Closing and reopening a notebook doesn't reset execution count. #3014

greazer opened this issue Sep 24, 2019 · 3 comments
Assignees

Comments

@greazer
Copy link
Member

greazer commented Sep 24, 2019

Bug: Notebook Editor, Interactive Window, Python Editor cells

Steps to cause the bug to occur

  1. Open a notebook
  2. Execute a couple cells
  3. Close the notebook, say don't save.
  4. Reopen the notebook
  5. Execute a cell

Actual & Expected behavior

The execution count for the executed cell starts off at the number that was last executed before you closed the notebook. I think the kernel should restart too, right?

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 20YY.MM.#####-xxx
  • VS Code version: #.##
  • Setting python.jediEnabled: true | false
  • Python and/or Anaconda version: #.#.#
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

Developer Tools Console Output

@rchiodo
Copy link
Contributor

rchiodo commented Sep 24, 2019

This is by design at the moment. The session for the notebook doesn't go away when you close the notebook.

@rchiodo
Copy link
Contributor

rchiodo commented Sep 24, 2019

We could probably restart the session on notebook close. That would at least reset execution count.

@rchiodo rchiodo self-assigned this Sep 26, 2019
@IanMatthewHuff IanMatthewHuff self-assigned this Sep 30, 2019
@IanMatthewHuff
Copy link
Member

Validated

@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants