Skip to content

Update pyproject.toml to automatically enable "Deploy as" option #66

@tdpetrou

Description

@tdpetrou

I finally had a chance to look at pyproject.toml and noticed that there is no instruction to automatically copy jupyter-config/nbconfig/notebook.d/jupyter_to_medium.json into the local user directoryetc/jupyter/nbconfig/notebook.d during installation. This enables the "File -> Deploy as" dropdown menu option in the notebook.

Currently, users will need to run jupyter bundlerextension enable --py jupyter_to_medium._bundler --sys-prefix in order to get this option to appear.

With the old setup.py packaging scipt, this was accomplished through the use of data_files. See the examples in the Jupyter notebook documentation here.

Briefly looking at poetry, It doesn't appear that there is support for it. A long discussion can be seen here.

@spoorn created poeblix, a poetry plugin for this exact case.

Any thoughts @mjam03 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions