sphinx_nbexamples/__init__.py
def code_example(self):
        """The code example out of the notebook metadata"""
        if self._code_example is not None:
            return self._code_example
        return getattr(self.nb.metadata, 'code_example', None)
def code_example(self):
        """The code example out of the notebook metadata"""
        if self._code_example is not None:
            return self._code_example
        return getattr(self.nb.metadata, 'code_example', None)
The code example out of the notebook metadata