Skip to content

Interactive Window -> Save to notebook, loses code formatting.  #7088

@greazer

Description

@greazer

Version: 1.60.0-insider (user setup)
Commit: 7c25c174726ab969db3f99058cdf24bcfae1cfbe
Date: 2021-08-11T05:15:24.598Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000

# %%
def foo():
  print('hello')

# %%
foo()
  1. Run in the interactive window
  2. Save as a notebook.

Notebook doesn't have the indentation it should. I.e. the first cell will look like:

def foo():
print('hello')

Same problem in VS Code Stable 1.59. Webview does not repro the problem. This may be a Jupyter extension issue not sure.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginteractive-windowImpacts interactive windowverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions