How to use the mknotebooks.plugin.NotebookFile function in mknotebooks

To help you get started, we’ve selected a few mknotebooks examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github greenape / mknotebooks / mknotebooks / plugin.py View on Github external
)
        pandas_dataframe_css = File(
            path="pandas-dataframe.css",
            src_dir=templates_dir,
            dest_dir=css_dest_dir,
            use_directory_urls=False,
        )
        jupyter_cells_css = File(
            path="jupyter-cells.css",
            src_dir=templates_dir,
            dest_dir=css_dest_dir,
            use_directory_urls=False,
        )
        files = Files(
            [
                NotebookFile(f, **config)
                if str(f.abs_src_path).endswith("ipynb")
                else f
                for f in files
            ]
            + [ansi_colours_css, pandas_dataframe_css, jupyter_cells_css]
        )
        return files

mknotebooks

Plugin for mkdocs to generate markdown documents from jupyter notebooks.

MIT
Latest version published 1 year ago

Package Health Score

50 / 100
Full package analysis