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?
to your account
Log console status bar widget sometimes does not update its message count
On JupyterLab 1.2.0a1:
In step 4, the message count should display zero messages.
The text was updated successfully, but these errors were encountered:
Can you help me find the log console of step 2, I am unable to find it.
Sorry, something went wrong.
You can open it from the view menu or by clicking on the message icon in the status bar.
@jasongrout the reason for this behavior is, active source is updated when a new notebook is activated (https://github.com/jupyterlab/jupyterlab/blob/master/packages/logconsole-extension/src/index.tsx#L540) or a notebook is closed (https://github.com/jupyterlab/jupyterlab/blob/master/packages/logconsole-extension/src/index.tsx#L553).
I couldn't find a way to detect deactivation of a notebook/log source.
Is there a way to listen for deactivation of a notebook (or activation of another tab that is not a notebook)?
Good question. You could handle this similar to how the line numbers are handled in the status bar, and listen to the currentChanged signal on the lab shell:
Lines 228 to 241
Successfully merging a pull request may close this issue.