Skip to content

Commit 0a8ffe3

Browse files
authored
Merge pull request #1202 from mathics/notebooks
adding System`Noteboooks to the settings.m file
2 parents ac78161 + 3b98786 commit 0a8ffe3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ New builtins
1414
* ``FileNames``
1515
* ``NIntegrate``
1616
* ``PartitionsP``
17+
* ``$Notebooks``
1718

1819
Enhancements
1920
++++++++++++

mathics/autoload/settings.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@
1010
Settings`$PreferredBackendMethod::usage = "Set this do whether to use mpmath, numpy or Sympy for numeric and symbolic constants and methods when there is s choice";
1111
Settings`$PreferredBackendMethod = "sympy"
1212
Unprotect[Settings`$PreferredBackendMethod]
13+
14+
(* Some packages like Feyncalc, test for whether a they are being used
15+
inside a notbook. *)
16+
System`$Notebooks::usage = "Set True if the Mathics is being used with a notebook‐based front end.";
17+
System`$Notebooks = False;
18+
Unprotect[System`Notebooks];

0 commit comments

Comments
 (0)