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

Test Jupyter Interactive Window in web #10164

Closed
2 tasks done
amunger opened this issue May 27, 2022 · 0 comments
Closed
2 tasks done

Test Jupyter Interactive Window in web #10164

amunger opened this issue May 27, 2022 · 0 comments
Labels
testplan-item triage-needed Issue needs to be triaged

Comments

@amunger
Copy link
Contributor

amunger commented May 27, 2022

Refs: #9717

Complexity: 4

Create Issue


Requirements

Set up

  1. Go to a command prompt where you've installed jupyter into a python environment
  2. Switch to a folder you're using for testing
  3. Run jupyter with the following command jupyter notebook --no-browser --NotebookApp.allow_origin=*

Test Steps

  1. Open insiders.vscode.dev and create a new python file
  2. Add a few cells (# %%), code lenses should appear for each cell
  3. Try to run a cell or the whole file in the interactive window
  4. The interactive window should open, but if you haven't connected to a server, a message should appear with a link to do so
  5. Connet to the jupyter server:
    1. Run the 'Jupyter: Specify jupyter server for connections' command, or use the link from the IW's info message
    2. Pick 'Existing'
    3. Paste the URL from the jupyter notebook server you started in step 3 of the setup
  6. Run a few cells from the file
  7. Run the file with Juptyer: Run Current File in Interactive Window
  8. Run code from the Interactive Window input box
  9. Restart the kernel with the toolbar button or command pallet and ensure variables are lost
  10. Try to interrupt a running cell with the interrupt button in the toolbar, e.g.
import sleep
sleep(5)
print('done')

Reuse live kernel

  1. Open another interactive window (you can just use jupyter: create Interactive Window )
  2. Use the Kernel picker in the top right to select a kernel used by another IW or notebook
  3. Ensure that variables set in one IW or notebook are available in the other when both connected to the same live kernel
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label May 27, 2022
@ghost ghost assigned meganrogge and hediet May 31, 2022
@hediet hediet removed their assignment May 31, 2022
@meganrogge meganrogge removed their assignment May 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants