if __has_scipy: __imports += ", SciPy %s" % sp.__version__ if __has_matplotlib: __imports += ", Matplotlib %s" % mpl.__version__ exec_print("") if __imports: exec_print(__imports) import os if os.environ.get('QT_API') != 'pyside': try: import guiqwt import guiqwt.pyplot as plt_ import guidata plt_.ion() exec_print("+ guidata %s, guiqwt %s" % (guidata.__version__, guiqwt.__version__)) except ImportError: exec_print() #============================================================================== # Add help about the "scientific" command #============================================================================== def setscientific(): """Set 'scientific' in __builtin__""" infos = "" if __has_numpy: infos += """ This is a standard Python interpreter with preloaded tools for scientific
__notimports.append("tellurium") if __notimports: for fail in __notimports: from colorama import Fore, Style print Fore.RED + Style.BRIGHT + "'import %s' failed" % fail print(Style.RESET_ALL) import os if os.environ.get('QT_API') != 'pyside': try: import guiqwt import guiqwt.pyplot as plt_ import guidata plt_.ion() exec_print("+ guidata %s, guiqwt %s" % (guidata.__version__, guiqwt.__version__)) except ImportError: exec_print() #============================================================================== # Add help about the "scientific" command #============================================================================== def setscientific(): """Set 'scientific' in __builtin__""" infos = "" if __has_numpy: infos += """