vscodeJupyter icon indicating copy to clipboard operation
vscodeJupyter copied to clipboard

Indentation of print statements are sometimes not preserved

Open konstantinkobs opened this issue 7 years ago • 0 comments

Environment data

VS Code version: 1.12.1 Jupyter Extension version: 1.1.3 OS and version: macOS 10.12.4

Actual behavior

When running a program/cell in which I print out strings with indentation at the beginning, the first print-out and every print-out which happens after a little "stand-by-time" are not indented.

Expected behavior

Every print statement that includes indentation in its string should be indented in the "Results" output as well.

Steps to reproduce:

Use the following code as a cell and run it

#%%
import time
for i in range(10):
    print("    Hello World!") # can be any string with indentation at the beginning
    time.sleep(1) # can be any computation that takes some time

konstantinkobs avatar May 11 '17 08:05 konstantinkobs