# How to make libraries available inb syside

**URL:** <https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339>\
**Category:** Syside\
**Tags:** automator\
**Created:** [December 17, 2025, 3:02am UTC](https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339 "2025-12-17T03:02:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Karban](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/robert_karban/32/119_2.png) [@Robert\_Karban](https://forum.sensmetry.com/u/Robert_Karban)\
**Post date:** [December 17, 2025, 3:02am UTC](https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339/1 "2025-12-17T03:02:30Z")

</div>

Hi,

Currently, I can import a bunch of standard libraries (e.g. ScalarValues) without knowing where they are located or that the source code is visible to the modeler.

How can I achieve that with my own libraries.  
Say, I create a library and want to distribute them.

I want the end-user just to be able to use it like ScalarValues.

How would I go about this?  
How is sysand involved here.

Thanks,

Robert

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [December 17, 2025, 7:00am UTC](https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339/2 "2025-12-17T07:00:20Z")

</div>

Hi,

In Python, dependencies are used through [Environment](https://docs.sensmetry.com/python/latest/syside/Environment.html#syside.Environment), and that includes the bundled standard library, see `Environment.get_default()`. For custom libraries, you will need to override the `environment` argument in [load\_model](https://docs.sensmetry.com/python/latest/syside/index.html#syside.load_model). `Models` have `to_environment` method inherited from [BaseModel](https://docs.sensmetry.com/python/latest/syside/BaseModel.html)

```python
my_lib_model, diagnostics = syside.load_model(...)
my_lib = my_lib_model.to_environment()
dependent_model, diagnostics = syside.load_model(..., environment=my_lib)

```

---

<div class="post-metadata">

**Author:** ![Robert\_Karban](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/robert_karban/32/119_2.png) [@Robert\_Karban](https://forum.sensmetry.com/u/Robert_Karban)\
**Post date:** [December 17, 2025, 8:58pm UTC](https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339/3 "2025-12-17T20:58:42Z")

</div>

Thanks @Daumantas  
Where do I put the custom libraries physically?

---

<div class="post-metadata">

**Author:** ![Simonas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/simonas/32/13_2.png) [@Simonas](https://forum.sensmetry.com/u/Simonas)\
**Post date:** [December 18, 2025, 1:54am UTC](https://forum.sensmetry.com/t/how-to-make-libraries-available-inb-syside/339/4 "2025-12-18T01:54:06Z")

</div>

Hi Robert,

You can, of course, put your libraries whereever you like and pass those files to `load_model` function.

If you want to use Sysand and be more future-proof, you can use Sysand’s `env` command ([sysand env - Sysand User Guide](https://docs.sysand.org/commands/env.html)) to create a “Sysand Environment” (similar to `venv` in Python) and install packages into it. You can also use Sysand’s `add` command ([sysand add - Sysand User Guide](https://docs.sysand.org/commands/add.html)) to install packages as dependencies, but that assumes you want to create a full SysMLv2 project.

At the moment, you will still need to load files from Sysand Environment manually into Syside Automator, but we are working on streamlining that, either by making changes in Syside Automator API itself or by introducing the Sysand Python API.
