# JupyterStan

**URL:** <https://discourse.mc-stan.org/t/jupyterstan/8104>\
**Category:** PyStan\
**Created:** [March 16, 2019, 7:33pm UTC](https://discourse.mc-stan.org/t/jupyterstan/8104 "2019-03-16T19:33:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahartikainen](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/ahartikainen/32/321_2.png) [@ahartikainen](https://discourse.mc-stan.org/u/ahartikainen)\
**Post date:** [March 16, 2019, 7:33pm UTC](https://discourse.mc-stan.org/t/jupyterstan/8104/1 "2019-03-16T19:33:26Z")

</div>

Hi, I just noticed this package in PyPI

> `jupyterstan` is a package to help development of Stan models (using `pystan` ) in jupyter notebooks.
> 
> The package is heavily based on Arvinds-ds [stanmagic](https://github.com/Arvinds-ds/stanmagic) package, but provides an interface that simply returns a `pystan.Model` object.
> 
> In addition, it bundles Arvinds-ds `stan_code_helper` package to improve syntax highlighting for stan cells.
> 
> ## Features
> 
> - Stan language syntax highlighting in all cells beginning with `%%stan`
> - Compile a stan model and save it as a pystan variable by running a `%%stan` cell
> - No longer worry about `model_code` , reading in stan files, etc.

> **[jupyterstan](https://pypi.org/project/jupyterstan/)**
>
> Magics for defining stan code in notebooks.

Looks very promising.

Github

> **[GitHub - janfreyberg/jupyterstan: Define Stan models in jupyter notebook...](https://github.com/janfreyberg/jupyterstan)**
>
> Define Stan models in jupyter notebook cells using magics - GitHub - janfreyberg/jupyterstan: Define Stan models in jupyter notebook cells using magics
