module td_2a.custom_magics

Inheritance diagram of ensae_teaching_cs.td_2a.custom_magics

Short summary

module ensae_teaching_cs.td_2a.custom_magics

An example of a custom magic for IPython.

source on GitHub

Classes

class truncated documentation
CustomMagics  

Functions

function truncated documentation
load_ipython_extension Registers magics function, can be called from a notebook.

Properties

property truncated documentation
cross_validation_lock A contextmanager for running a block with our cross validation lock set to True. At the end of the block, …

Methods

method truncated documentation
ENSAE This command can be activated by typing
ENSAEb This command can be activated by typing
ENSAEl This command can be activated by typing

Documentation

An example of a custom magic for IPython.

source on GitHub

class ensae_teaching_cs.td_2a.custom_magics.CustomMagics(shell=None, **kwargs)[source]

Bases : IPython.core.magic.Magics

ENSAE(line, cell=None)[source]

This command can be activated by typing:

%ENSAE

Or:

%%ENSAE

source on GitHub

ENSAEb(line, cell)[source]

This command can be activated by typing:

%%ENSAEb

source on GitHub

ENSAEl(line)[source]

This command can be activated by typing:

%ENSAEl

source on GitHub

_trait_default_generators = {}
ensae_teaching_cs.td_2a.custom_magics.load_ipython_extension(ip)[source]

Registers magics function, can be called from a notebook.

source on GitHub