-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General things -------------- Allow 2D rendering from asymptote. This is useful in debugging asymptote problem such as seen in the LaTeX doc. Eliminate: Set::setraw: Cannot assign to raw object colorful. message on startup. Propagate non-meaning operators from MathicsScanner. More specifically ----------------- __main__.py: * add --{no-,}matplotlib and {no-,asymptote} options * DRY settin Settings`* asymptote.py: * Redo so that each image is its own temporary file. This is simpler and easier to debug. settings.m: * Remove setting any value that is set in the command line inputrc-no-unicode: Add all no-meaning operators. This is derived from changes in MathicsScanner format.py: Revise so that we can use aymptote for 2D graphs termshell.py: Don't try to set PygmentsStyle this way, this doesn't work and gives Set::setraw: Cannot assign to raw object colorful. due to a preexisting rewrite rule. PygmentsStyle is set other places
- Loading branch information
Showing
7 changed files
with
110 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2020-2022 Rocky Bernstein <[email protected]> | ||
# Copyright (C) 2020-2022, 2024 Rocky Bernstein <[email protected]> | ||
|
||
from columnize import columnize | ||
|
||
|
@@ -115,18 +115,13 @@ def __init__( | |
try: | ||
self.terminal_formatter = Terminal256Formatter(style=style) | ||
except ClassNotFound: | ||
print( | ||
"Pygments style name '%s' not found; No pygments style set" % style | ||
) | ||
print(f"Pygments style name '{style}' not found; No pygments style set") | ||
|
||
self.pygments_style = style | ||
self.definitions = definitions | ||
set_settings_value( | ||
self.definitions, "Settings`$PygmentsShowTokens", from_python(False) | ||
) | ||
set_settings_value( | ||
self.definitions, "Settings`$PygmentsStyle", from_python(style) | ||
) | ||
set_settings_value( | ||
self.definitions, "Settings`$UseUnicode", from_python(use_unicode) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters