sphinx_nbexamples/__init__.py
def code_div(self):
        """The string for creating a code example for the gallery"""
        code_example = self.code_example
        if code_example is None:
            return None
        return self.CODE_TEMPLATE.format(
            snippet=self.get_description()[1], code=code_example,
            ref_name=self.reference)
def code_div(self):
        """The string for creating a code example for the gallery"""
        code_example = self.code_example
        if code_example is None:
            return None
        return self.CODE_TEMPLATE.format(
            snippet=self.get_description()[1], code=code_example,
            ref_name=self.reference)
The string for creating a code example for the gallery