Python Forum
Which versions of ipython implement --classic correctly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which versions of ipython implement --classic correctly
#1
In my PyClical software, I include doctests. To run these doctests as part of a larger test suite, written as bash shell scripts, I run

ipython --classic --no-banner < test.py > test.out

and compare the output in test.out -- including the '>>> ' prompts -- with previous test output.

Up until recently, this has worked. Now that I am using iPython 5.1, it has stopped working, because iPython is no longer producing '>>> ' prompts, seemingly ignoring the '--classic' option, and instead, it prompts using 'In [1]: ', 'Out[1]: ' etc.
  1. Is this a bug in iPython 5.X? Is it known or should I report it?
  2. Is is actually a bug in iPython versions earlier than 5, that should have ignored the '--classic' option for reasons that I don't understand?
  3. Was I relying on undocumented behaviour?
  4. How do I write a test script that works with every users' version of iPython, regardless of this bug? Should I just wait for the bug to be fixed and warn users that they can't test using certain versions of iPython that are known to be buggy?
Reply


Messages In This Thread
Which versions of ipython implement --classic correctly - by penguian - Aug-29-2017, 06:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  IPython errors for numpy array min/max methods muelaner 1 1,660 Nov-04-2023, 09:22 PM
Last Post: snippsat
  Can a program execute code in iPython shell and get result? deanhystad 3 2,936 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  numpy.dot() result different with classic computation for large-size arrays geekgeek 5 3,470 Jan-25-2022, 09:45 PM
Last Post: Gribouillis
  IPython console vs Spyder script losc 3 3,861 Apr-30-2020, 04:57 AM
Last Post: deanhystad
  How can I create a multiline input in ipython? DataMower 3 5,934 Oct-28-2019, 08:50 PM
Last Post: DataMower
  ipython autocomplete broke indentation! Exsul 6 6,257 Aug-20-2019, 01:29 AM
Last Post: Exsul
  How to clear IPython console in Spyder? Vai 7 63,771 Aug-20-2018, 09:43 PM
Last Post: james_balcomb
  Stopwatch in Python/IPython shell suvadip 3 5,531 Jul-06-2018, 01:51 PM
Last Post: snippsat
  PyEDA-IPython Problem [Graph] embash 5 6,293 Jun-02-2018, 06:40 PM
Last Post: buran
  Spyder : Clear IPython Console whenever I re-run the script smallabc 0 6,073 Mar-04-2018, 08:05 AM
Last Post: smallabc

Forum Jump:

User Panel Messages

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