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
Log console status bar widget does not update #7325
Comments
Can you help me find the log console of step 2, I am unable to find it. |
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: jupyterlab/packages/statusbar-extension/src/index.ts Lines 228 to 241 in e04e3af
|
Description
Log console status bar widget sometimes does not update its message count
Reproduce
On JupyterLab 1.2.0a1:
Expected behavior
In step 4, the message count should display zero messages.
Context
CC @mbektasbbg
The text was updated successfully, but these errors were encountered: