A molecular model can be easy to share while the steps used to analyze or modify it are not. A script may live on one computer, input files in another folder, and the instructions in an email or notebook. When a colleague opens the model, the missing pieces can make it hard to repeat the workflow—or even to know what was done.
SAMSON documents can help keep these project materials together. In addition to molecular models, a document can embed Python scripts and other files or folders. The result is a document that stores those embedded materials with the project, making them easier to transfer and share.
Build a portable project document
Start with the SAMSON document you want to share. Add the scripts and supporting files that another person will need to understand or use the workflow. You can drag and drop files or folders into SAMSON and choose to embed them, or use Home > Embed files or Home > Embed folders.

Embedding files makes them part of the document rather than leaving them only in their original location. This is useful when a project includes, for example, a Python script alongside data or explanatory material. It also gives collaborators a clearer starting point: the project and its included resources travel together.
Make the workflow easier to inspect
Before sharing, consider what a colleague will need to know when they open the document. Use descriptive filenames, and include a short explanation of what the script is intended to do and which files it uses. If there are several scripts, a simple naming convention can make their order or purpose easier to understand. These small choices help turn a collection of files into a more usable handoff.
To open an embedded Python script, double-click it to open it in the Code Editor. SAMSON’s Code Editor supports Python files and can run them. You can run a script using the Run control on the left panel or from the Run menu. For quick commands, the integrated Python Console provides another way to work with Python in SAMSON.

The Python environment exposes the SAMSON Python API, so scripts can automate SAMSON workflows. The documentation also describes using the integrated environment with Python packages. Keep in mind that embedding a script and its supporting files is not the same as installing every Python package it may depend on. If your workflow uses additional packages, check that they are available in the recipient’s environment. Packages can be managed from the Python Console through Edit > Manage packages….
Share with context
Once the document contains the materials you intend to share, you can distribute it through channels such as email, GitHub, or SAMSON Connect Documents. A useful handoff includes the model, relevant scripts and files, and enough context for someone else to understand what to open and try. For research, attaching analysis scripts to a molecular model can also help make the process behind a result more transparent.
A quick pre-share check can prevent common confusion:
- Confirm that the intended scripts and supporting files are embedded in the document.
- Open an embedded script in the Code Editor and check that it is the version you mean to share.
- Explain which script to run and what it is expected to use or produce.
- Note any Python packages the workflow requires, since those may need to be installed separately.
- Share the document with a colleague when possible, so you can check that the handoff is understandable outside your own working setup.
Bundling project materials does not remove the need to document assumptions or test a workflow, but it can reduce the familiar problem of a model arriving without the code and files needed to make sense of it. For details on scripting, package management, the console, and embedded files, see the SAMSON Scripting documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
