-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious `unknown message usage_request errors #214
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thanks @nthiery for opening the issue 👍 This might be related to the logic to detect whether the kernel usage is supported: jupyter-resource-usage/jupyter_resource_usage/api.py Lines 14 to 21 in cbf962f
jupyter-resource-usage/jupyter_resource_usage/api.py Lines 96 to 107 in cbf962f
These checks seem to be happening on the server extension regardless of which kernel is currently in use. Probably this means that if cc @echarles @krassowski @davidbrochart since this likely comes from the integration of the kernel usage panel in this repo: #164 |
Yes, the code incorrectly assumes that the current kernel is always ipykernel. It also uses as of yet non-standard As a short-term solution (beside starting a pre-proposal for a JEP) I would imagine we could ensure that the request is sent at most once (i.e. avoid sending the message again if kernel did not reply). |
Description
jupyter-error-messages
now emits "usage_request" messages. However not allkernels support them, which may lead to error messages in the notebook:
See this discussion
Reproduce
(sorry, not great in terms of reproducibility :-) )
/cc @jtpio
The text was updated successfully, but these errors were encountered: