Invalid layout name should be valid (cose-bilkent)
Description
Trying to use cose-bilkent layout is invalid, but it appears in suggested layouts in the related error message.
Steps/Code to Reproduce
I have loaded the extra layouts using the code from the documentation - seen below:
import dash_cytoscape as city
cyto.load_extra_layouts()
When trying to set the layout to "cose-bilkent" in Cytoscape component like the following, I get an error:
cyto.Cytoscape(
id="test",
layout={
"name": "cose-bilkent"
}
)
Expected Results
Would be nice to have a cose-bilkent layout.
Actual Results
The following error popup:
Invalid argument `layout.name` passed into Cytoscape with ID "test".
Expected one of ["random","preset","circle","concentric","grid","breadthfirst","cose","close-bilkent","cola","euler","spread","dagre","klay"].
Versions
Dash 2.3.1
/Users/niels/Documents/GitHub/test/test.py:3: UserWarning:
The dash_html_components package is deprecated. Please replace
`import dash_html_components as html` with `from dash import html`
import dash_html_components; print("Dash Core Components", dash_html_components.__version__)
Dash Core Components 2.0.2
/Users/niels/Documents/GitHub/test/test.py:4: UserWarning:
The dash_core_components package is deprecated. Please replace
`import dash_core_components as dcc` with `from dash import dcc`
import dash_core_components; print("Dash HTML Components", dash_core_components.__version__)
Dash HTML Components 2.3.0
Dash Renderer 1.9.1
Dash HTML Components 0.2.0
P.S. there is missing two underscores in the template for this step, so you get the following error at first:
AttributeError: module 'dash_renderer' has no attribute '__version'
They already fixed it but have not yet published a new version. https://github.com/plotly/dash-cytoscape/pull/147
In the mean time, you can install from the master branch
pip install git+https://github.com/plotly/dash-cytoscape