Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
cdb_package_compiler.py File Reference

Import hook which makes Cadabra notebooks importable as Python modules. More...

Classes

class  cdb_package_compiler.PackageCompiler
 

Namespaces

namespace  cdb_package_compiler
 

Functions

 cdb_package_compiler.install (compile_func)
 

Variables

 cdb_package_compiler._compile_package = None
 

Detailed Description

Import hook which makes Cadabra notebooks importable as Python modules.

This module is imported by the cadabra2 module itself when it gets loaded, which calls install to register the PackageCompiler finder on sys.meta_path. A plain import cadabra2 is therefore enough to be able to import a .cnb, .cdb or .ipynb file.