# How to run code given in openmc

**URL:** <https://openmc.discourse.group/t/how-to-run-code-given-in-openmc/1416>\
**Category:** User Support\
**Created:** [September 7, 2021, 3:17am UTC](https://openmc.discourse.group/t/how-to-run-code-given-in-openmc/1416 "2021-09-07T03:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BKD](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@BKD](https://openmc.discourse.group/u/BKD)\
**Post date:** [September 7, 2021, 3:17am UTC](https://openmc.discourse.group/t/how-to-run-code-given-in-openmc/1416/1 "2021-09-07T03:17:18Z")

</div>

I am new in openmc. I want to know that how can I run this code through openmc.

Below is the link of code given in openmc site.

[https://docs.openmc.org/en/stable/pythonapi/generated/openmc.model.pack\_spheres.html#openmc.model.pack\_spheres](https://docs.openmc.org/en/stable/pythonapi/generated/openmc.model.pack_spheres.html#openmc.model.pack_spheres)

Anyone, please help me with this.

I have installed docker on my windows pc.

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [September 7, 2021, 12:06pm UTC](https://openmc.discourse.group/t/how-to-run-code-given-in-openmc/1416/2 "2021-09-07T12:06:52Z")

</div>

@BKD There is an example showing the use of the `pack_spheres` function in [this Jupyter notebook](https://nbviewer.jupyter.org/github/openmc-dev/openmc-notebooks/blob/main/triso.ipynb).
