Page tree
Skip to end of metadata
Go to start of metadata


  • No labels

1 Comment

  1. Connect to Rnning Kernels

    Kernel Connect
    from zeep import Client
    
    client = Client('https://api.rosettahub.com/public/PlatformServices?wsdl')
    platform = client.service
    session = platform.newSession("{YOUR_LOGIN}", "{YOU_PASSWORD}", 0 )
    engines = platform.getEngines(session, {'includePrivate':True,'includeShared':True, 'machineInstanceLabel':'*Data Science*' });
      
    e=engines[0];
    esession=platform.newEngineSession(session, None, e.engineUid, [], 0,0);
    
    kernel=Client(e.url).service;
    kernel.console(esession, "x=c(5,66,66)", {'process':'R'}, asynch=False);
    x=kernel.getObject(esession, "x", {'process':'R'});
    print(x);
    
    
    kernel.console(esession, "abc=[55,66,66]", {'process':'Python'}, asynch=False);
    abc=kernel.getObject(esession, "abc", {'process':'Python'});
    print(abc);