Skip to content
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

Invalid layout name should be valid (cose-bilkent) #172

Open
nilq opened this issue Apr 21, 2022 · 1 comment
Open

Invalid layout name should be valid (cose-bilkent) #172

nilq opened this issue Apr 21, 2022 · 1 comment

Comments

@nilq
Copy link

nilq commented Apr 21, 2022

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'
@ppakorn
Copy link

ppakorn commented Apr 29, 2022

They already fixed it but have not yet published a new version.
#147

In the mean time, you can install from the master branch
pip install git+https://github.com/plotly/dash-cytoscape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants