jupyter_analysis_tools.utils

Functions

appendToPATH(parentPath[, subdirs])

Adds the given path with each subdirectory to the PATH environment variable.

checkWinFor7z()

Extend the PATH environment variable for access to the 7-zip executable.

extract7z(fn[, workdir])

fmtErr(val, std[, precision, width])

Formats a given value and its std.

grouper(iterable, n[, fillvalue])

Returns an iterator over a list of tuples (grouping) for a given flat iterable.

isLinux()

isList(obj)

Return true if the provided object is list-like including a numpy array but not a string.

isMac()

isWindows()

pushd(new_dir)

setLocaleUTF8()

Fix the Jupyter locale which is not UTF-8 by default on some systems (older Windows?).

setPackage(globalsdict)

Sets the current directory of the notebook as python package to make relative module imports work.

shortenWinPath(path)

updatedDict(d, key, value)

Implements the |= operator for dict in Python version <3.9.