Hello,
I am currently trying to setup the ability to launch CS live sessions through a standardized python script or Jupyter notebook.
I found this tutorial: Managing a CryoSPARC Live Session from the CLI | CryoSPARC Guide and also this other post Can cryosparc-tools be used to start CryoSPARC-Live sessions?
I am trying to run this in a Jupyter Notebook on the headnode where Cryosparc runs. I cannot get the first imports to work:
import os
from cryosparc_compute import client
host = os.environ['CRYOSPARC_MASTER_HOSTNAME']
command_core_port = int(os.environ['CRYOSPARC_COMMAND_CORE_PORT'])
command_rtp_port = int(os.environ['CRYOSPARC_COMMAND_RTP_PORT'])
It cannot find the cryosparc_compute.
I was able to create a conda environment where cryosparc.tools was installed as explaind here: Getting Started — cryosparc-tools.
import os
from cryosparc.tools import CryoSPARC
from cryosparc.command import CommandClient
Is cryosparc_compute deprecated ? How can I do the equivalent as explained in that guide but with cryosparc.tools.
Thanks,
William J Nicolas