module __init__

Short summary

module pyensae

Module pyensae. Recurrent needs for teachings turned into functions.

source on GitHub

Functions

function

truncated documentation

_setup_hook

if this function is added to the module, the help automation and unit tests call it first before anything goes on …

check

Checks the library is working. It raises an exception.

load_ipython_extension

to allow the call %load_ext pyensae

Documentation

Module pyensae. Recurrent needs for teachings turned into functions.

source on GitHub

pyensae._setup_hook(add_print=False, unit_test=False)

if this function is added to the module, the help automation and unit tests call it first before anything goes on as an initialization step. It should be run in a separate process.

Parameters:
  • add_print – print Success: _setup_hook

  • unit_test – used only for unit testing purpose

source on GitHub

pyensae.check(log=False)

Checks the library is working. It raises an exception.

Parameters:

log – if True, display information, otherwise

Returns:

0 or exception

Installation issue

If the installation fails because of a SyntaxError

Collecting pyensae
Using cached pyensae-1.1.302.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/qv/something/T/pip-build-xxxx/pyensae/setup.py", line 98
    raise ImportError(message) from e
                                ^
SyntaxError: invalid syntax

It probably means you are trying to install pyensae on Python 2.7 instead of using Python 3.

source on GitHub

pyensae.load_ipython_extension(ip)

to allow the call %load_ext pyensae

Parameters:

ip – from get_ipython()

source on GitHub