Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Refactor our displayhook IPython integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vbraun committed Sep 18, 2014
1 parent a246e17 commit eb6a66b
Show file tree
Hide file tree
Showing 14 changed files with 1,083 additions and 600 deletions.
4 changes: 2 additions & 2 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def init_sage():
sage.doctest.DOCTEST_MODE=True
import sage.all_cmdline
sage.interfaces.quit.invalidate_all()
import sage.misc.displayhook
sys.displayhook = sage.misc.displayhook.DisplayHook()
import sage.repl.display.python_hook
sys.displayhook = sage.repl.display.python_hook.DoctestDisplayHook()

# Switch on extra debugging
from sage.structure.debug_options import debug
Expand Down
2 changes: 1 addition & 1 deletion src/sage/groups/matrix_gps/matrix_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _repr_(self):
return 'Matrix group over {0} with {1} generators'.format(
self.base_ring(), self.ngens())
else:
from sage.misc.displayhook import format_list
from sage.repl.display.util import format_list
return 'Matrix group over {0} with {1} generators {2}'.format(
self.base_ring(), self.ngens(), format_list(self.gens()))

Expand Down
Loading

0 comments on commit eb6a66b

Please sign in to comment.