ipydrawio icon indicating copy to clipboard operation
ipydrawio copied to clipboard

Mindmap widget collapse button not work

Open bcaso opened this issue 1 year ago • 3 comments

Description

Mindmap widget collapse button not work.

Context

  • Browser and version: Version 111.0.5563.65 (Official Build, ungoogled-chromium) (64-bit)

  • JupyterLab version:

  • ipydrawio-* version(s):

root@ee4b04a9fa8f:/# pip list | grep jupyter
jupyter_client           8.2.0
jupyter_core             5.3.0
jupyter-events           0.6.3
jupyter-lsp              2.0.1
jupyter_server           2.5.0
jupyter_server_fileid    0.9.0
jupyter_server_terminals 0.4.4
jupyter_server_ydoc      0.8.0
jupyter-ydoc             0.2.4
jupyterlab               3.6.3
jupyterlab-fasta         3.2.0
jupyterlab-geojson       3.3.1
jupyterlab-katex         3.3.0
jupyterlab-lsp           4.0.1
jupyterlab-mathjax3      4.3.0
jupyterlab-pygments      0.2.2
jupyterlab_server        2.22.1
jupyterlab-vega2         3.2.0
jupyterlab-vega3         3.2.0
jupyterlab-vim           0.16.0
jupyterlab-widgets       3.0.7
root@ee4b04a9fa8f:/# pip list | grep drawio
ipydrawio                1.3.0
ipydrawio-widgets        1.3.0
root@ee4b04a9fa8f:/#

Required: installed server extensions
root@ee4b04a9fa8f:/# jupyter server extension list
Config dir: /root/.jupyter

Config dir: /usr/local/etc/jupyter jupyter_lsp enabled - Validating jupyter_lsp... Package jupyter_lsp took 0.0128s to import A _jupyter_server_extension_points function was not found in jupyter_lsp. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. jupyter_lsp 2.0.1 OK jupyter_server_fileid enabled - Validating jupyter_server_fileid... Package jupyter_server_fileid took 0.0033s to import jupyter_server_fileid 0.9.0 OK jupyter_server_terminals enabled - Validating jupyter_server_terminals... Package jupyter_server_terminals took 0.0107s to import jupyter_server_terminals 0.4.4 OK jupyter_server_ydoc enabled - Validating jupyter_server_ydoc... Package jupyter_server_ydoc took 0.0268s to import jupyter_server_ydoc 0.8.0 OK jupyterlab enabled - Validating jupyterlab... Package jupyterlab took 0.0831s to import jupyterlab 3.6.3 OK nbclassic enabled - Validating nbclassic... Package nbclassic took 0.0000s to import A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. nbclassic 0.5.5 OK notebook_shim enabled - Validating notebook_shim... Package notebook_shim took 0.0000s to import A _jupyter_server_extension_points function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. notebook_shim OK

Config dir: /usr/local/etc/jupyter jupyter_lsp enabled - Validating jupyter_lsp... Package jupyter_lsp took 0.0000s to import A _jupyter_server_extension_points function was not found in jupyter_lsp. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. jupyter_lsp 2.0.1 OK jupyter_server_fileid enabled - Validating jupyter_server_fileid... Package jupyter_server_fileid took 0.0000s to import jupyter_server_fileid 0.9.0 OK jupyter_server_terminals enabled - Validating jupyter_server_terminals... Package jupyter_server_terminals took 0.0000s to import jupyter_server_terminals 0.4.4 OK jupyter_server_ydoc enabled - Validating jupyter_server_ydoc... Package jupyter_server_ydoc took 0.0000s to import jupyter_server_ydoc 0.8.0 OK jupyterlab enabled - Validating jupyterlab... Package jupyterlab took 0.0000s to import jupyterlab 3.6.3 OK nbclassic enabled - Validating nbclassic... Package nbclassic took 0.0000s to import A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. nbclassic 0.5.5 OK notebook_shim enabled - Validating notebook_shim... Package notebook_shim took 0.0000s to import A _jupyter_server_extension_points function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. notebook_shim OK

Required: installed lab extensions
root@ee4b04a9fa8f:/# jupyter labextension list
JupyterLab v3.6.3
/usr/local/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        @jupyterlab/mathjax3-extension v4.3.0 enabled OK (python, jupyterlab-mathjax3)
        @jupyterlab/vega3-extension v3.2.0 enabled OK (python, jupyterlab-vega3)
        @jupyterlab/vega2-extension v3.2.0 enabled OK (python, jupyterlab-vega2)
        @jupyterlab/fasta-extension v3.2.0 enabled OK (python, jupyterlab-fasta)
        @jupyterlab/katex-extension v3.3.0 enabled OK (python, jupyterlab-katex)
        @jupyterlab/geojson-extension v3.3.1 enabled OK (python, jupyterlab-geojson)
        @axlair/jupyterlab_vim v0.16.0 enabled OK (python, jupyterlab_vim)
        @jupyter-lsp/jupyterlab-lsp v4.0.1 enabled OK (python, jupyterlab-lsp)
        @jupyter-widgets/jupyterlab-manager v5.0.7 enabled OK (python, jupyterlab_widgets)
        @deathbeds/ipydrawio-webpack v21.1.600 enabled OK (python, ipydrawio)
        @deathbeds/ipydrawio v1.3.0 enabled OK (python, ipydrawio)
        @deathbeds/ipydrawio-jupyter-templates v1.3.0 enabled OK (python, ipydrawio)
        @deathbeds/ipydrawio-notebook v1.3.0 enabled OK (python, ipydrawio)

Other labextensions (built into JupyterLab) app dir: /usr/local/share/jupyter/lab

Disabled extensions: @jupyterlab/mathjax2-extension:plugin root@ee4b04a9fa8f:/#

Troubleshoot Output
  Paste the output from running `jupyter troubleshoot` from the command line here.
  You may want to sanitize the paths in the output.
Command Line Output
  Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output (recommended for all interface issues)
  Paste the output from your browser JavaScript console replacing the text in here.

To learn how to open the developer tools in your browser: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools#How_to_open_the_devtools_in_your_browser If too many messages accumulated after many hours of working in JupyterLab, consider refreshing the window and then reproducing the bug to reduce the noise in the logs.

bcaso avatar Apr 15 '23 14:04 bcaso

The browser output log is crucial here. Most browsers can reveal it with:

  • pressing f12
  • restarting the page
  • repeat the action the results in the thing you weren't expecting

Note that a number of the newer mermaid outputs require the Image output (as opposed to Diagram) output, and may not have all the interactive features enabled.

bollwyvl avatar Apr 15 '23 19:04 bollwyvl

Animation2

It looks like that I didn't install ipydrawio-mathjax. After install ipydrawio-mathjax, the problem still appear.

root@ee4b04a9fa8f:/# pip list | grep math
ipydrawio-mathjax        1.3.0
jupyterlab-mathjax3      4.3.0

Animation2

bcaso avatar Apr 16 '23 00:04 bcaso

A few things:

  • once things are in a box, the selection mode gets a little weird, and one might need to ensure the child is selected before the click handlers work
  • it looks like the Tree Folding might be needed to be enabled as well,
  • the child leaves may need to be actually contained within the parent shape (e.g. by dragging a shape onto the existing shape).

image

image

bollwyvl avatar Apr 16 '23 14:04 bollwyvl