Closed IvoLeist closed 6 years ago
@IvoLeist
could you describe your
make sure you have the latest dev version
pip uninstall py2cytoscape
pip install git+https://github.com/cytoscape/py2cytoscape.git --user
and then
from py2cytoscape import cyrest
cy=cyrest.cyclient()
cy.status()
cy.version()
print cy.commands.list_namespaces()
cy.commands.namespace("session")
cy.commands.command("session", "new")
cy.session.new()
deprecated my lack of feedback
sys.path.insert(0,"/home/user/.local/lib/python2.7/site-packages/py2cytoscape-0.6.2-py2.7.egg/py2cytoscape") import cyrest as cyrest
Step 1: Create py2cytoscape client
cy=cyrest.cyclient() cy.status() cy.version() print cy.commands.list() cy.commands.namespace("session") cy.commands.command("session", "new") cy.session.new()
Output: CyREST online! cytoscapeVersion 3.5.1 apiVersion v1 Available namespaces: command edge group layout network node session table view vizmap
<Response [405]> 405
HTTP ERROR 405
Problem accessing /v1/commands/session/new. Reason:
Powered by Jetty://