-
Notifications
You must be signed in to change notification settings - Fork 0
Add Bilkent Cxtmenu #1
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
Conversation
8049b9e
to
759e9c4
Compare
@@ -841,7 +850,7 @@ Cytoscape.propTypes = { | |||
tapEdgeData: PropTypes.object, | |||
|
|||
/** | |||
* The data dictionary of a node returned when you hover over it. Read-only. | |||
modified: src/lib/cyCxtMenu.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unintentional change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops yes unintentional change. Reverted.
* Property that determines whether a context menu is displayed and how. Requires extra layouts loaded. | ||
* Context menu is accessed by right clicking. It accepts a list of dictionaries, each of which describes | ||
* a context menu option. Options are rendered in the order presented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Property that determines whether a context menu is displayed and how. Requires extra layouts loaded. | |
* Context menu is accessed by right clicking. It accepts a list of dictionaries, each of which describes | |
* a context menu option. Options are rendered in the order presented. | |
* Displays a context menu on right click. Requires extra layouts loaded. | |
* Accepts a list of dictionaries, each of which describes | |
* a context menu option. Options are rendered in the order presented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just two minor comments. 💃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm running into an error installing the library.
C:\Users\Dell\Desktop\Code\Zyphr\dash-cytoscape\dist>pip install dash_cytoscape-0.3.0.tar.gz
Processing c:\users\dell\desktop\code\zyphr\dash-cytoscape\dist\dash_cytoscape-0.3.0.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pip-req-build-vjwdxxaw\\setup.py'"'"'; __file__='"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pip-req-build-vjwdxxaw\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Dell\AppData\Local\Temp\pip-pip-egg-info-gleh_o9b'
cwd: C:\Users\Dell\AppData\Local\Temp\pip-req-build-vjwdxxaw\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Dell\AppData\Local\Temp\pip-req-build-vjwdxxaw\setup.py", line 7, in <module>
with open('package.json') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'package.json'
----------------------------------------
WARNING: Discarding file:///C:/Users/Dell/Desktop/Code/Zyphr/dash-cytoscape/dist/dash_cytoscape-0.3.0.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'm building the tarball for the library using python setup.py sdist
and then attempting to install the library by pip install dash_cytoscape-0.3.0.tar.gz
. Am I doing something wrong?
|
||
- cxtmenuData (dict; optional): | ||
Dictionary returned when you a context menu option is selected. | ||
Read-only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
Dictionary returned when a context menu option is selected
Hmm yeah, there's a bunch of issues here. I can install v0.3.0 from PyPI but I can't import it in Python:
Presumably I can install it because it has a wheel (which is great! keep building wheels along with the sdist tarballs!). If I try to build as you did, I get a similar problem. Has this really been broken since 0.3.0 was released in May? Specifically I think we need to revert these two changes:
|
Hi folks, What was the reasoning for naming the context menu property I'm thinking that using the full word What are your thoughts? |
Everything looks good to me! We will not be fixing the packaging error in this PR as discussed with @alexcjohnson. Good to merge after considering the above comment about the naming conventions. Once this PR is merged, I will create another PR to add the example Dash application I created. 💃 |
Good call - also to avoid confusion, I've more often seen context abbreviated to |
Co-authored-by: Alex Johnson <alex@plot.ly>
All comments addressed |
About
Adds the bilkent context menu to dash-cytoscape using an API and implementation which will allow the toronto context menu to be added as well using the same format. Replaces existing context menu PRs.
cxtmenu
property to provide configuration for the context menucxtmenuData
property to receive callbacks from the context menuNote: please let me know what dash-cytoscape version an update including this addition along with the map addition should hold. I will update the change log with it once I know.
Description of changes
Pre-Merge checklist
npm run build:all
.Reference Issues
Closes #[issue number]
Other comments