ibeis.templates package

Submodules

ibeis.templates.generate_notebook module

CommandLine:

# Generate and start an IPython notebook
python -m ibeis --tf autogen_ipynb --ipynb --db <dbname> [-a <acfg>] [-t <pcfg>]

python -m ibeis --tf autogen_ipynb --ipynb --db seaturtles -a default2:qhas_any=\(left,right\),sample_occur=True,occur_offset=[0,1,2],num_names=1
ibeis.templates.generate_notebook.autogen_ipynb(ibs, launch=None, run=None)[source]

Autogenerates standard IBEIS Image Analysis IPython notebooks.

CommandLine:

python -m ibeis --tf autogen_ipynb --run --db lynx

python -m ibeis --tf autogen_ipynb --ipynb --db PZ_MTEST --asreport
python -m ibeis --tf autogen_ipynb --ipynb --db PZ_MTEST --noexample --withtags

python -m ibeis --tf autogen_ipynb --db PZ_MTEST
# TODO: Add support for dbdir to be specified
python -m ibeis --tf autogen_ipynb --db ~/work/PZ_MTEST

python -m ibeis --tf autogen_ipynb --ipynb --db Oxford -a default:qhas_any=\(query,\),dpername=1,exclude_reference=True,dminqual=good
python -m ibeis --tf autogen_ipynb --ipynb --db PZ_MTEST -a default -t best:lnbnn_normalizer=[None,normlnbnn-test]

python -m ibeis.templates.generate_notebook --exec-autogen_ipynb --db wd_peter_blinston --ipynb

python -m ibeis --tf autogen_ipynb --db PZ_Master1 --ipynb
python -m ibeis --tf autogen_ipynb --db PZ_Master1 -a timectrl:qindex=0:100 -t best best:normsum=True --ipynb --noexample
python -m ibeis --tf autogen_ipynb --db PZ_Master1 -a timectrl --run
jupyter-notebook Experiments-lynx.ipynb
killall python

python -m ibeis --tf autogen_ipynb --db humpbacks --ipynb -t default:proot=BC_DTW -a default:has_any=hasnotch
python -m ibeis --tf autogen_ipynb --db humpbacks --ipynb -t default:proot=BC_DTW default:proot=vsmany -a default:has_any=hasnotch,mingt=2,qindex=0:50 --noexample

Example

>>> # SCRIPT
>>> from ibeis.templates.generate_notebook import *  # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb(defaultdb='testdb1')
>>> result = autogen_ipynb(ibs)
>>> print(result)
ibeis.templates.generate_notebook.get_default_cell_template_list(ibs)[source]

Defines the order of ipython notebook cells

ibeis.templates.generate_notebook.make_ibeis_cell_list(ibs)[source]
ibeis.templates.generate_notebook.make_ibeis_notebook(ibs)[source]
Parameters:ibs (ibeis.IBEISController) – ibeis controller object

CommandLine:

python -m ibeis.templates.generate_notebook --exec-make_ibeis_notebook --db wd_peter_blinston --asreport
python -m ibeis --tf --exec-make_ibeis_notebook
python -m ibeis --tf make_ibeis_notebook --db lynx
jupyter-notebook tmp.ipynb
runipy tmp.ipynb --html report.html
runipy --pylab tmp.ipynb tmp2.ipynb
sudo pip install runipy
python -c "import runipy; print(runipy.__version__)"

Example

>>> # SCRIPT
>>> from ibeis.templates.generate_notebook import *  # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb(defaultdb='testdb1')
>>> notebook_str = make_ibeis_notebook(ibs)
>>> print(notebook_str)

ibeis.templates.notebook_cells module

ComamndLine:
python -m ibeis –tf autogen_ipynb –ipynb –db PZ_MTEST –ipynb

Module contents

ibeis.templates.reassign_submodule_attributes(verbose=True)[source]

why reloading all the modules doesnt do this I don’t know

ibeis.templates.reload_subs(verbose=True)[source]

Reloads ibeis.templates and submodules

ibeis.templates.rrrr(verbose=True)

Reloads ibeis.templates and submodules