Python Forum
How to clear IPython console in Spyder?
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to clear IPython console in Spyder?
#5
I would not recommend it - but that will work.
Output:
In [1]: for name in list(globals()): ...: if name[0] != '_': ...: del globals()[name] ...:
Of course, that most probably will render your session unusable - even with _ guard
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
How to clear IPython console in Spyder? - by Vai - Jun-22-2018, 03:35 PM
RE: How to clear IPython console in Spyder? - by volcano63 - Jun-22-2018, 09:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spyder console zoom in not working? Dionysis 2 487 Feb-06-2024, 03:31 PM
Last Post: paul18fr
  IPython errors for numpy array min/max methods muelaner 1 598 Nov-04-2023, 09:22 PM
Last Post: snippsat
  Can a program execute code in iPython shell and get result? deanhystad 3 1,777 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  Spyder Quirk? global variable does not increment when function called in console rrace001 1 2,253 Sep-18-2020, 02:50 PM
Last Post: deanhystad
  IPython console vs Spyder script losc 3 2,758 Apr-30-2020, 04:57 AM
Last Post: deanhystad
  How can I create a multiline input in ipython? DataMower 3 4,408 Oct-28-2019, 08:50 PM
Last Post: DataMower
  ipython autocomplete broke indentation! Exsul 6 4,599 Aug-20-2019, 01:29 AM
Last Post: Exsul
  spyder - won't show results in console kbrummert 0 4,311 Jan-20-2019, 01:11 AM
Last Post: kbrummert
  Stopwatch in Python/IPython shell suvadip 3 4,333 Jul-06-2018, 01:51 PM
Last Post: snippsat
  PyEDA-IPython Problem [Graph] embash 5 4,542 Jun-02-2018, 06:40 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020