{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# gen_doc.core" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Type an introduction of the package here." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from gen_doc.nbdoc import * " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "- [annealing_cos](#annealing_cos)\n", "- [annealing_exp](#annealing_exp)\n", "- [annealing_linear](#annealing_linear)\n", "- [annealing_no](#annealing_no)\n", "- [annealing_poly](#annealing_poly)\n", "- [do_annealing_poly](#do_annealing_poly)\n", "- [example_function](#example_function)\n", "- [is_iterable](#is_iterable)\n", "- [is_listy](#is_listy)\n", "- [is_tuple](#is_tuple)\n", "- [linked_docstring_example](#linked_docstring_example)\n", "- [listify](#listify)\n", "- [Parentclass](#Parentclass)\n", "- [SmoothenValue](#SmoothenValue)\n", " - [SmoothenValue.add_value](#SmoothenValue.add_value)\n", "- [Subclass](#Subclass)\n", " - [Subclass.update](#Subclass.update)\n", " - [Subclass.remove](#Subclass.remove)\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "get_module_toc(\"gen_doc.core\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Global Variable Definitions:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`FileLike = Union[str, Path]`
[source]
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`Floats = Union[float, Collection[float]]`
[source]
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`AnnealingFt = Union[Callable[[float,float,float],float],Callable[[float,float,float,float],float]]`
[source]
" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**annealing_cos**(start: float, end: float, pct: float) -> float
[source]
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','annealing_cos')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**annealing_exp**(start: float, end: float, pct: float) -> float
[source]
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','annealing_exp')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**annealing_linear**(start: float, end: float, pct: float) -> float
[source]
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','annealing_linear')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**annealing_no**(start: float, end: float, pct: float) -> float
[source]
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','annealing_no')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**annealing_poly**(degree: float) -> Callable" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','annealing_poly')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**do_annealing_poly**(start: float, end: float, pct: float, degree: float) -> float" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','do_annealing_poly')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**example_function**(x: int, cls: [Parentclass](gen_doc.core.ipynb#Parentclass)=None) -> str\n", "\n", "\n", "Provides an example to how docstrings are resolved\n", "\n", "- *x*: Number to store\n", "\n", "- *cls*: Class string\n", "\n", "\n", "*return*: Error string" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','example_function')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**is_iterable**(x) -> bool" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','is_iterable')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**is_listy**(x) -> bool" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','is_listy')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**is_tuple**(x) -> bool" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','is_tuple')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**linked_docstring_example**(x: int, s: str=Hello) -> bool\n", "\n", "\n", "Should link to [`example_function`](gen_doc.core.ipynb#example_function)" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','linked_docstring_example')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**listify**(p=None, q=None) -> Collection\n", "\n", "\n", "Makes p a list that looks like q" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','listify')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "class **Parentclass**()" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','Parentclass')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "class **SmoothenValue**(beta: float)\n", "\n", "\n", "To compute the moving average of values" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','SmoothenValue')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**SmoothenValue.add_value**(self, val: float)" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','SmoothenValue.add_value')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "class **Subclass**(var: int=10) :: Inherits from ([`Parentclass`](gen_doc.core.ipynb#Parentclass))" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','Subclass')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**Subclass.cmethod**(x)" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','Subclass.cmethod')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**Subclass.remove**(self)" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','Subclass.remove')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "**Subclass.update**(self)" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc_from_name('gen_doc.core','Subclass.update')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" } }, "nbformat": 4, "nbformat_minor": 2 }