Skip to content

Commit

Permalink
Add SetEnviroment, go over GetEnvironment... (#1071)
Browse files Browse the repository at this point in the history
GetEnvironment:  add empty list and named list forms.

`mathics/__init__.py`: attempt to limit imports of big packages sympy,
numpy and mpmath

Go over doctests for each of these.
  • Loading branch information
rocky committed Aug 19, 2024
1 parent e9e8fa7 commit 81499bd
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 53 deletions.
12 changes: 6 additions & 6 deletions mathics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from importlib import import_module
from typing import Dict

import mpmath
import numpy
import sympy
from mpmath import __version__ as mpmath_version
from numpy import __version__ as numpy_version
from sympy import __version__ as sympy_version

from mathics.version import __version__

Expand All @@ -17,10 +17,10 @@
# if we can't get version information.
version_info: Dict[str, str] = {
"mathics": __version__,
"mpmath": mpmath.__version__,
"numpy": numpy.__version__,
"mpmath": mpmath_version,
"numpy": numpy_version,
"python": platform.python_implementation() + " " + sys.version.split("\n")[0],
"sympy": sympy.__version__,
"sympy": sympy_version,
}


Expand Down
Loading

0 comments on commit 81499bd

Please sign in to comment.