Skip to content

History lost in interactive python #3285

@Hristiyan-Andreev

Description

@Hristiyan-Andreev

Hello, I've been actively using the Jupyter notebook feature (Interactive Python window) to prototype and test chunks of code easily.
However, I've noticed that after doing many inputs [eg. 61] from the console, the history gets lost.

Am I doing something wrong or the Interactive python workbook history is pretty limited?

What I mean by that is that I cannot scroll up to find my first inputs [before 55] or their relative outputs. When I export as Jupyter notebook from the button, I get an .ipynb file with only my last few inputs [eg. 55-61]. Of course, those inputs cannot output anything, because the variables from the previous inputs are missing.

When scrolling the Variables windows in VScode I can find all my variables from previous outputs and work with them - just as expected.

The only thing that saved me from losing all my work was the command history in the Interactive python console (using the arrow keys when entering a command, to find the previously used ones)

Screenshot from VSCode after many inputs on the console:
VScode1

Screenshot in Jupyter (from browser) after exporting the notebook. It exports only the last inputs.
VScode2

Version: 1.35.1 (system setup)
Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f
Date: 2019-06-12T14:30:02.622Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 6.1.7601

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions