{"id":21674,"library":"ovito","title":"OVITO","description":"OVITO (Open Visualization Tool) is a scientific data visualization and analysis software for atomistic and particle simulation data. Version 3.15.3 supports Python 3.10+. It provides a Python module for scripting data import, modification, visualization, and analysis. The library is under active development by OVITO GmbH.","status":"active","version":"3.15.3","language":"python","source_language":"en","source_url":"https://gitlab.com/ovito/ovito","tags":["visualization","molecular-dynamics","atomistic-simulation","data-analysis","scientific-visualization"],"install":[{"cmd":"pip install ovito","lang":"bash","label":"Install OVITO"}],"dependencies":[],"imports":[{"note":"The main entry point; all modules are accessed via ovito.io, ovito.modifiers, ovito.data, etc.","symbol":"ovito","correct":"import ovito"},{"note":"After loading a simulation file, the pipeline's compute method returns a DataCollection object.","symbol":"DataCollection","correct":"from ovito.data import DataCollection"}],"quickstart":{"code":"import ovito\nfrom ovito.io import import_file\nfrom ovito.modifiers import SelectTypeModifier\n\npipeline = import_file('simulation.dump')\nmod = SelectTypeModifier(types=['Atom'])\npipeline.modifiers.append(mod)\ndata = pipeline.compute()\nprint(data.attributes['SelectType.count'])","lang":"python","description":"Load a simulation file, add a modifier to select atoms, compute the pipeline, and print the count."},"warnings":[{"fix":"Rewrite scripts to use the new module structure (e.g., ovito.io instead of ovito.import_file). Refer to the migration guide.","message":"OVITO 3.0+ uses a new Python API that is not backwards compatible with OVITO 2.x scripts.","severity":"breaking","affected_versions":">=3.0"},{"fix":"Install OVITO via 'pip install ovito' or use the bundled Python interpreter that comes with the OVITO desktop application.","message":"The ovito Python module is only available in the OVITO Python interpreter or when installed via pip. Running 'import ovito' in a standard Python environment may fail if the OVITO conda/pip package is not installed.","severity":"gotcha","affected_versions":"all"},{"fix":"Always call pipeline.compute() before accessing data or attributes.","message":"Modifiers are applied lazily: calling pipeline.compute() is required to get the data. Reading data before compute returns an empty DataCollection.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install ovito' or install the OVITO conda package.","cause":"OVITO Python package not installed in the current environment.","error":"ModuleNotFoundError: No module named 'ovito'"},{"fix":"Use 'from ovito.io import import_file' instead.","cause":"Importing from the wrong module path: ovito.import_file is deprecated since OVITO 3.0.","error":"AttributeError: module 'ovito' has no attribute 'import_file'"},{"fix":"Ensure you have installed 'ovito' via pip and have a valid license if required for certain features.","cause":"Attempting to use ovito in a non-OVITO Python interpreter without a valid license or without installing the pip package.","error":"RuntimeError: This operation is not supported in the current interpreter mode"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}