Simplify Molecular Modeling with SAMSON’s Python Package Manager.

For molecular modelers diving into complex computational workflows, managing Python packages can become a significant hurdle. The choice of compatible libraries, the need for version control, and the installation of custom Python packages often add unnecessary overhead to your research. Thankfully, SAMSON provides an integrated Python Package Manager to streamline this process. Here’s how SAMSON makes package management as seamless as possible.

Centralized Package Management in SAMSON

Within SAMSON, you can access the Python Package Manager directly from the Python Console. Simply navigate to Edit > Manage packages… to open the dedicated interface for package management.

The intuitive design of the Python Package Manager allows you to:

  • View installed packages and their respective versions.
  • Install or uninstall Python packages with just a few clicks.
  • Specify package versions to ensure compatibility with your workflows.
  • Leverage pip commands directly for advanced use cases.

Here’s what the interface looks like:

Manage packages...

Installing Python Packages

To install a Python package, simply type in its name and click Install. You can also include version specifications, such as:

  • package_name==1.2.0 to install a specific version.
  • package_name>=2.1.0 to install a package with a minimum version requirement.
  • package_name --upgrade to update to the latest version.

Here’s a look at the installation process:

Package Manager: install a Python package

For packages not available on PyPI, the Python Package Manager also supports installation of local Python packages. By providing a valid path to a local package (with a setup.py file), you can install it with ease. Additionally, SAMSON supports editable installations, useful for developers making frequent changes to their package code in real-time.

Package Manager: install a local Python package

Uninstalling Python Packages

Uninstalling a package is equally straightforward. Just input the package name in the dialog box and click Uninstall. Whether the package was installed from PyPI or locally, the process is consistent and simple.

Advanced Tips and Notes

When managing Python packages in SAMSON, here are a few things to keep in mind:

  • Editable installations are incredibly handy for development work but might have restrictions on some macOS installations – reinstalling or switching to non-editable mode may help.
  • You can add various pip flags after package names if needed — SAMSON adapts to your command inputs with flexibility.

By centralizing all of these features, SAMSON makes it easier for molecular modelers and researchers to integrate cutting-edge Python tools into their workflows.

Conclusion

The Python Package Manager in SAMSON significantly reduces the friction in handling external Python packages, making your modeling and simulation workflows more efficient. Whether you’re installing a PyPI package or managing locally-developed libraries, SAMSON provides a straightforward solution.

To explore the full potential of the Python Package Manager, check out the complete documentation here.

*Please note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at SAMSON Connect.*

Comments are closed.