dandi / dandi-hub

Infrastructure and code for the dandihub
https://hub.dandiarchive.org
Other
11 stars 24 forks source link

[Warning]: Jupyter platform paths #62

Closed CodyCBakerPhD closed 1 year ago

CodyCBakerPhD commented 1 year ago

Any time I run a Python command from the CLI, from any kernel, I get this warning printed out

image

Following the instructions of course resolves the warning, but this gets incredibly annoying to do every time I launch a new environment or restart the server

satra commented 1 year ago

can you see if this is gone? i couldn't replicate it with some basic terminal actions with the current update to the latest jupyter-datascience image.

CodyCBakerPhD commented 1 year ago

Agh, nevermind. It's something very specific about one of the packages I'm using in a specific script, so it's not really replicable outside that or relevant to anyone else, closing now.

If curious about more details if I inject a larger `stacklevel` at https://github.com/jupyter/jupyter_core/blob/484d41278bde1ea3c64ac996ee4c7d0d42a803b3/jupyter_core/utils/__init__.py#L75 and additionally force it to error out there, it ends up coming from from `brainbox` (the IBL library) to `seaborn` to `ipywidgets` to `ipykernel` ``` File "/home/jovyan/GitHub/ibl-to-nwb/ibl_to_nwb/updated_conversion/datainterfaces/iblstreaminginterface.py", line 5, in from brainbox.io.one import SpikeSortingLoader File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/brainbox/io/one.py", line 29, in import brainbox.plot File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/brainbox/plot.py", line 23, in import seaborn as sns File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/seaborn/__init__.py", line 12, in from .widgets import * # noqa: F401,F403 File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/seaborn/widgets.py", line 6, in from ipywidgets import interact, FloatSlider, IntSlider File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/ipywidgets/__init__.py", line 25, in from .widgets import * File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/ipywidgets/widgets/__init__.py", line 4, in from .widget import Widget, CallbackDispatcher, register, widget_serialization File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 13, in from ipykernel.comm import Comm File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/ipykernel/__init__.py", line 5, in from .connect import * # noqa File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/ipykernel/connect.py", line 11, in import jupyter_client File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_client/__init__.py", line 8, in from .asynchronous import AsyncKernelClient # noqa File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in from .client import AsyncKernelClient # noqa File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_client/asynchronous/client.py", line 9, in from ..client import KernelClient, reqrep File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_client/client.py", line 20, in from .connect import ConnectionFileMixin File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_client/connect.py", line 20, in from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write File "/home/jovyan/my-conda-envs/run_ibl/lib/python3.8/site-packages/jupyter_core/paths.py", line 208, in deprecation( ``` however, I've never seen this when just using `ipywidgets` itself (of course I don't call that in the terminal anyway...) 🤷‍♂️