You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I've gone through and updated the package dependencies to bring us into 2022/2023 - I've also just checked out the data_files idea and unfortunately poeblix won't work right out of the box.
Here we can see that it joins these paths and sticks 'data' in there so we can't construct that nice clean path to etc/jupyter/nbconfig/notebook.d:
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 ofdata_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 ?
The text was updated successfully, but these errors were encountered: