Comments (9)
Hi Pallab,
You're right that without the usual VMD GUI the display module and others (molrep, etc) aren't of much use. This interface is in the process of being integrated into the main VMD codebase-- if you need these features you can check out the main VMD CVS tree and compile it yourself.
I'm working on getting offscreen rendering to an EGL buffer working so you can do everything from the module, but this is a low priority right now.
from vmd-python.
from vmd-python.
It has been a while, but I believe it is whichever interpreter it was hooked up to at compile time. One could check via the contents of sys.version
from vmd-python.
from vmd-python.
Right, since it is using either the system python (ldd of the VMD executable links to a system python library) or a barebones python installation bundled in with the executable via static linkage. I think the default is the latter, so there isn't an easy way to replace your python library without a reinstall, which is why vmd-python is so awesome, as it takes alot of the guesswork out of building VMD on new systems.
from vmd-python.
from vmd-python.
vmd-python is a Python module that exposes the molecular manipulation functions present in the main VMD program. It's not a full-featured VMD implementation or standalone program, and won't affect the interpreter used in VMD. It doesn't provide a vmd command or a vmd-python command---all it lets you do is run import vmd
in Python.
If you want a VMD installation with a Python interpreter, you'll have to compile VMD yourself and link against the python you want to use. Here's how I do it:
-
Set the environment variables the build will use with a script. Here's mine. It builds against a conda installation of Python. See the comments for which lines to change. Then source it:
source source_me.sh
-
In your VMD source directory $VMDDIR:
cd $VMDDIR/plugins
make LINUXAMD64
make distrib
- Symlink the plugins installed directory into the main source directory, then build cmd.
cd $VMDDIR/vmd
ln -s $PLUGINDIR plugins
cat "LINUXAMD64 OPENGL FLTK TK IMD NETCDF COLVARS TCL PYTHON PTHREADS NUMPY LP64 GCC" > configure.options
./configure
cd src
make
make install
Hopefully this works. If not, let me know how I can help as I wrote this up pretty quickly. You'll probably want to get access to the VMD developer CVS tree for all the python functionality to be present. I'm also working on getting binary releases of these to be made available, but that won't be for a while.
from vmd-python.
from vmd-python.
vmd-python is a Python module that exposes the molecular manipulation functions present in the main VMD program. It's not a full-featured VMD implementation or standalone program, and won't affect the interpreter used in VMD. It doesn't provide a vmd command or a vmd-python command---all it lets you do is run
import vmd
in Python.If you want a VMD installation with a Python interpreter, you'll have to compile VMD yourself and link against the python you want to use. Here's how I do it:
- Set the environment variables the build will use with a script. Here's mine. It builds against a conda installation of Python. See the comments for which lines to change. Then source it:
source source_me.sh
- In your VMD source directory $VMDDIR:
cd $VMDDIR/plugins make LINUXAMD64 make distrib
- Symlink the plugins installed directory into the main source directory, then build cmd.
cd $VMDDIR/vmd ln -s $PLUGINDIR plugins cat "LINUXAMD64 OPENGL FLTK TK IMD NETCDF COLVARS TCL PYTHON PTHREADS NUMPY LP64 GCC" > configure.options ./configure cd src make make install
Hopefully this works. If not, let me know how I can help as I wrote this up pretty quickly. You'll probably want to get access to the VMD developer CVS tree for all the python functionality to be present. I'm also working on getting binary releases of these to be made available, but that won't be for a while.
please check this.
when I enter
make LINUXAMD64,
after sourcing my environmental variable file. I mentioned tcl8.6 in my
vmd_me.sh file, but still the compiler is searching for tcl8.5. I had sent you an screenshot via mail.
from vmd-python.
Related Issues (20)
- Documentation updates? HOT 1
- Blank lines when writing a PDB HOT 5
- index / serial HOT 1
- render produce wrong output file when running through script HOT 2
- add label and specific color for some resid HOT 1
- DCD files HOT 1
- some problems in python HOT 3
- Cannot install vmd-python
- Does this package can invoke a VMD GUI or just uses the python-api of VMD HOT 1
- Use PSFgen version 2.0 HOT 2
- __init__.py not found HOT 2
- Installation error in vmd-python HOT 2
- number of frames is 0 HOT 3
- Build issues HOT 3
- Can't use topotools::mergetools when evaluating a tcl script. HOT 3
- Support for Python 3.10+ HOT 2
- Building with EGL support
- Building a water box fails randomly.
- Memory bleed (not dumping) issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmd-python.