-
Notifications
You must be signed in to change notification settings - Fork 62
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
Recuperate zoom and rendered position changed #66
Comments
needs to be |
Also, what are these for? On the python side they don't seem to do much? https://github.com/QuantStack/ipycytoscape/blob/8769ec2d36a9ae5ec8420ffc1c96fbb0f062d284/ipycytoscape/cytoscape.py#L306-L307 Are they in case someone wants to modify those things from python? like: for z in [.25, 1, 2]:
cytoscapeobj.zoom =z
sleep(1000) |
Ah, one consequence of this is that if you have multiple views of the same object they all are forced to have the same zoom level. Is this intended? My preference would be for different views to be able to have different zoom levels and rendered positions so i could look at multiple parts of the same graph at once using different cells. |
So this code is for the frontend part, actually.
That'd be cool. I don't really know how to do this, because I think the API for this is bounded to the whole graph object but don't know much about it, might be doable! |
Huh, I think I'm misunderstanding something then. To me it looks like what these functions do is make sure that
I think I'm confused here as well. Looking at that code (https://github.com/QuantStack/ipycytoscape/blob/b39d99fc66cc416d5f6e32fa776896257f2d44f6/src/widget.ts) it seems that
This was possible until I tried re-adding the above functions. My understanding of how widgets work is that there is one underlying python model, but every time you create a new output (i.e. Here's the behavior without readding those lines: and with them readded: |
There are these two functions who got lost from version 0.1 to 0.2 of ipycytoscape.
If you download this release file: https://github.com/QuantStack/ipycytoscape/releases/tag/0.1.4
You'll see it, but basically, we need to readd them to the code:
This should lie inside https://github.com/QuantStack/ipycytoscape/blob/1cba2f411d6e323d83025d52dd314817f064ad94/src/widget.ts#L334
We also have to make sure it works, a calling of these functions in one of the example notebooks will be enough :)
The text was updated successfully, but these errors were encountered: