bamboolib
bamboolib copied to clipboard
After installation of bamboolib , viewing output data in scrolling windows failed in jupyterlab
Environment
- Operating System: windows 10 or Ubuntu 2004
- Python Version: 3.6.8
- How did you install bamboolib: pip ,fully fresh installation in a new venv , just did as the https://pypi.org/project/bamboolib/. the jupyterlab==2.3.1 and notbook==6.3
- Python packages:
- If bamboolib is used with JupyterLab: JupyterLab extensions:
jupyter labextension list
- If bamboolib is used with Jupyter Notebook: Notebook extension:
jupyter nbextension list
Description of Issue
After installed bamboolib , viewing data in scrolling windows faild. In jupyterlab ,menu item of Enable Scrolling for Outputs does not work.
- What did you expect to happen?
- Just expect to be able to view data in scrolling windws successfully for other cells' output.
- What happened instead? The scrolling action was failed as mentioned above
Reproduction Steps
1 After executed the code from https://docs.bamboolib.8080labs.com/documentation/how-tos/installation-and-setup/install-bamboolib/test-bamboolib , the result was as following picture
2 Then opened a new notebook and wrote some code as following picture
the code was simple,and the output was a little long
3 I wanted view the output data in a scrolling windows, so just had a right-clicking on the output, and choose the menu item of Enable Scrolling for Outputs , but it failed, just as the following picture
4 I repeated this on Ubuntu 2004 and conda envs with other conditions keeping the same ,the Scrolling action was failed,too.
I had tried to switch jupyterlab to 2.2.9 and notebook to 6.1.5 and python to 3.8.8, but still could not view output data in scrolling window.
When I uninstalled bamboolib, the scrolling window mode was really enabled as following picture
5 Some more,I tried reinstalled bamboolib as step 1,but failed, In output window,it just kept showing the text of bamboolib is loading ...
What steps have you taken to resolve this already?
...Not yet
Anything else?
... Is this bug or something else I have not got?
Thank you for your detailed bug report! I can confirm that this issue is created by bamboolib. We will have to look into our CSS in order to find out how to fix this.
Quick fix solutions for now:
- restarting the kernel without bamboolib (as you mentioned)
- maybe using a Jupyter Notebook (instead of Lab) might help?
Thank you for your detailed bug report! I can confirm that this issue is created by bamboolib. We will have to look into our CSS in order to find out how to fix this.
Quick fix solutions for now:
- restarting the kernel without bamboolib (as you mentioned)
- maybe using a Jupyter Notebook (instead of Lab) might help?
Thanks! I am using it in Jupyter Notebook only now and it works well here.
@DatumWorld just wanted to add some explanation here and hear how you're doing :)
We change the scrolling behavior when importing bamboolib because when a user explores data, the output cell may become larger than what is tolerated by JupyterLab
Example: a user looks at the correlation matrix and then clicks on a cell, which creates an additional bivariate plot below the correlation matrix. This would cause JupyterLab to collapse the output window, which is what we don't want it to do.
Are you fine for now with the quick fix proposed by @FlorianWetschoreck?
@DatumWorld just wanted to add some explanation here and hear how you're doing :)
We change the scrolling behavior when importing bamboolib because when a user explores data, the output cell may become larger than what is tolerated by JupyterLab
Example: a user looks at the correlation matrix and then clicks on a cell, which creates an additional bivariate plot below the correlation matrix. This would cause JupyterLab to collapse the output window, which is what we don't want it to do.
Are you fine for now with the quick fix proposed by @FlorianWetschoreck?
Thanks! Because it works well in Notebook ,so do you mean that the tolerance to the size of output cell windows between JupyterLab and Jupyter Notebook are different ? At least, I expect that the use of bamboolib in one ipynb file does not affect the scrolling of output cell windows in other ipynb files without bamboolib , is it possible in JupyterLab?