Skip to content
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

Must run pymol -R -cKRQ to use ipymol #22

Open
celine168 opened this issue Sep 14, 2019 · 1 comment
Open

Must run pymol -R -cKRQ to use ipymol #22

celine168 opened this issue Sep 14, 2019 · 1 comment

Comments

@celine168
Copy link

celine168 commented Sep 14, 2019

Hello! I ran these commands to install pymol and ipymol:

conda install -c schrodinger pymol
pip install git+https://github.com/cxhernandez/ipymol.git@2a30d6ec1588434e6f0f72a1d572444f89ff535b

I tried the example code, but calling pymol.start() would stall. The rest of the code wouldn't execute unless if I called pymol -R -cKRQ in a Terminal in JupyterLab.

from ipymol import viewer as pymol
pymol.start()   # Start PyMOL RPC server
pymol.fetch('3odu') # Fetch PDB
pymol.show_as('cartoon') # Show as cartoon
pymol.bg_color('white') # Set background color to white
pymol.display() # Show current display

Not sure if this is intended behavior. I expected the rest of the code to execute without opening up the Terminal.

@MooersLab
Copy link

Thank you for this post.
I installed ipymol using the pip at the PyMOL prompt inside an open PyMOL session.

I had success by

  • making a kernel for the python interpreter inside the schrodinger PyMOL
  • making a bash alias to this pymol
  • running it in a terminal opened with the jupyter notebook using the command
pymol -Rq 

so that the pymol session is interactive.

I found that I had to use do in place of cmd in my python code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants