question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to not append results to Python Interactive

See original GitHub issue

As part of my data science workflow I use the Python Interactive window as a REPL. That is, I run lines and then can interact with the Jupyter terminal to check data and figures. However, as the number of Jupyter cells grows the processing speed of each line declines. In some cases, when the number of cells exceeds 200 it takes a while to even process 1+1. To overcome this I restart the ipython kernel and remove all cells. However, I lose my variables and have to rerun all the variables I was working with.

After some searching, it appears there was an option to disable appending results to the window, but it is not available now.

"python.jupyter.appendResults": false,

It would be great to have this option available so the Python Interactive window acts more like a REPL than a notebook, at least until this issue is resolved #727. These features are necessary for efficient data science workflows – akine to Spyder and RStudio.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
rchiodocommented, Oct 7, 2019

We’re re-purposing this issue to really just be about not appending. There’s interest in having the interactive window behave slightly more like a notebook in that a cell stays in the location it’s written to. This would essentially be - do not append unless a new cell is run - mode.

The perf related to that change should not be necessary once we fix some of our virtualization issues (and we’ll be doing separately).

0reactions
rchiodocommented, Oct 18, 2021

It’s unlikely we’ll get to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python list append method do not return expected results?
With data['snm'] = i , you are basically doing the same thing and this dictionary is being added to list using append ....
Read more >
Python .append() and .extend() Methods Tutorial - DataCamp
Using list methods to add data: append() vs.​​ The . extend() method increases the length of the list by the number of elements...
Read more >
Python List Append VS Python List Extend – The Difference ...
append () the original list is modified. The method does not create a copy of the list – it mutates the original list...
Read more >
10. List Manipulation | Python Tutorial
Extending and Appending Lists with the '+' Operator​​ There is an alternative to 'append' and 'extend'. '+' can be used to combine lists....
Read more >
Python append to a file - GeeksforGeeks
Example 2: Append data from a new line. In the above example of file handling, it can be seen that the data is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found