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: built-in interactive window #129288

Closed
3 tasks done
joyceerhl opened this issue Jul 24, 2021 · 0 comments
Closed
3 tasks done

Test: built-in interactive window #129288

joyceerhl opened this issue Jul 24, 2021 · 0 comments

Comments

@joyceerhl
Copy link
Collaborator

joyceerhl commented Jul 24, 2021

Refs: #126415

Complexity: 4

Authors: @rebornix, @joyceerhl

Create Issue


In this iteration we addressed any remaining ship-blocking bugs for the built-in interactive window in the Jupyter extension, and enabled the built-in interactive window by default for all users.

  1. Install the Jupyter extension and Python extension in VS Code Insiders
  2. Install a Python runtime e.g. from https://python.org (you can uninstall it later)
  3. python -m pip install ipykernel nbconvert
  4. Open a Python file (untitled or saved to disk)
  5. Add #%% to create an interactive cell delimited by codelenses. Create several of these, e.g.
#%% 
print(1)

#%%   
print(2)

#%% 
print(3)

#%%   
print(4)
  1. Set your cursor to the first 'cell'. Quickly hit shift+enter to create the interactive window and run each cell and advance to the next for all cells
  2. Verify that the UI looks like this
    image
  3. Code cell inputs should be initially collapsed, showing a preview of the code cell input
  4. Verify that the cells all executed and in the order they were submitted in
  5. Submit a few more cells. Verify that as you execute cells, the interactive window scrolls to reveal new cells and their output. Verify that if you scroll up such that the last cell is not visible, then submit more #%% cells, the interactive window does not scroll to reveal new cells and their outputs.
  6. Clicking on the Go To codelens above each #%% cell should scroll the corresponding interactive window notebook cell into view
  7. Verify the current working directory in the Jupyter kernel selected as the controller for the interactive window is set by running a cell containing pwd from the interactive window input box
  8. Use the toolbar to export the interactive window contents to Python script or HTML. Verify that the export works
  9. Verify that you can set breakpoints in your Python script and debug #%% cells using the Debug Cell codelens
@joyceerhl joyceerhl added this to the July 2021 milestone Jul 24, 2021
@lramos15 lramos15 removed their assignment Jul 27, 2021
@rzhao271 rzhao271 removed their assignment Jul 27, 2021
@meganrogge meganrogge removed their assignment Jul 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants