Cadabra
Computer algebra system for field theory problems
Classes | Namespaces | Functions | Variables
cadabra2_defaults.py File Reference

Cadabra2 pure Python functionality. More...

Classes

class  cadabra2_defaults.PackageCompiler
 
class  cadabra2_defaults.PackageCompiler.Sympy
 Stub object for when Sympy itself is not available. More...
 
class  cadabra2_defaults.Server
 Object to handle advanced display in a UI-independent way. More...
 
class  cadabra2_defaults.Console
 

Namespaces

 cadabra2_defaults
 

Functions

def cadabra2_defaults.save_history (history_path)
 
def cadabra2_defaults.display (obj, cell_id=0, delay_send=False)
 Generic display function which handles local as well as remote clients. More...
 
def cadabra2_defaults._displayhook (arg)
 
def cadabra2_defaults.post_process (__cdbkernel__, ex)
 

Variables

 cadabra2_defaults.__cdbkernel__ = cadabra2.__cdbkernel__
 
 cadabra2_defaults.completer
 
int cadabra2_defaults.PY3 = 3
 
 cadabra2_defaults.unicode = str
 
string cadabra2_defaults.discr = "\\discretionary{}{}{} "
 
string cadabra2_defaults.mopen = "\\begin{dmath*}{}";
 
string cadabra2_defaults.mclose = "\\end{dmath*}";
 
 cadabra2_defaults.server
 
bool cadabra2_defaults.have_matplotlib = True
 
bool cadabra2_defaults.have_plotly = True
 
 cadabra2_defaults.console = Console()
 
 cadabra2_defaults.callback
 
 cadabra2_defaults.remember_display_hook = sys.displayhook
 
 cadabra2_defaults.displayhook
 

Detailed Description

Cadabra2 pure Python functionality.

This is a pure-python initialisation script to set the path to sympy and setup printing of Cadabra expressions. This script is called both by the command line interface 'cadabra2' as well as by the GUI backend server 'cadabra-server'.