stan-playground
Run Stan models in the browser
File Explorer
Download Latest Version (.zip)- docker_deploy.yml
- tests.yml
- vercel_deploy.yml
- codecov.yml
- __init__.py
- compilation_files.py
- __init__.py
- authorization.py
- compilation.py
- compilation_job_mgmt.py
- exceptions.py
- locking.py
- config.py
- main.py
- pyproject.toml
- run.sh
- Dockerfile
- local.mk
- README.md
- embed_example_1.html
- embed_example_2.md
- embed_example_3.md
- embed_examples.md
- linear_regression_multiple_predictors.json
- linear_regression_multiple_predictors.py
- linear_regression_multiple_predictors.stan
- compilation_server_setup.md
- feature_overview.md
- previous_stan_playground.md
- README.md
- stan_playground_embedded.md
- url_parameters.md
- stan-playground-embed.js
- StanPlay_Icon_RGB_Black.png
- StanPlay_Logo_RGB_Black.png
- StanPlay_Logo_RGB_Full.png
- StanPlay_Logo_RGB_White.png
- StanPlayground_favicon.ico
- data.py
- data.R
- DataFilesPanel.tsx
- DataPyPanel.tsx
- DataRPanel.tsx
- useDataGenState.ts
- analysis.py
- analysis.R
- AnalysisPyPanel.tsx
- AnalysisRPanel.tsx
- useAnalysisState.ts
- Histogram.tsx
- ScatterPlot2D.tsx
- ScatterPlot3D.tsx
- ScatterPlotMatrix.tsx
- TracePlot.tsx
- ConsolePanel.tsx
- DrawsTablePanel.tsx
- HistogramsPanel.tsx
- ScatterPlotsPanel.tsx
- SummaryPanel.tsx
- TracePlotsPanel.tsx
- AnalysisArea.tsx
- SamplerOutputArea.tsx
- CompileButton.tsx
- RunOrCompilePanel.tsx
- RunPanel.tsx
- SamplerProgress.tsx
- SamplerProgressCircular.tsx
- SamplerStatusPanel.tsx
- SamplingOptsPanel.tsx
- ResultsArea.tsx
- RunArea.tsx
- DataGenerationArea.tsx
- SamplingArea.tsx
- DataEditorPanel.tsx
- ModelEditorPanel.tsx
- ControlArea.tsx
- ModelDataArea.tsx
- monacoStanLanguage.ts
- PlottingScriptEditor.tsx
- ScriptEditor.tsx
- stanLsp.ts
- stanLspWorker.ts
- TextEditor.tsx
- ToolBar.tsx
- useTemplatedFillerText.ts
- CloseableDialog.tsx
- Collapsable.tsx
- CopyableLink.tsx
- FileListing.tsx
- FilledCircularProgress.tsx
- LazyPlotlyPlot.tsx
- LinearProgressWithLabel.tsx
- Loading.tsx
- NumberInput.tsx
- ResponsiveGrid.tsx
- StyledTables.tsx
- TabWidget.tsx
- UploadArea.tsx
- CompileContextProvider.tsx
- compileStanProgram.ts
- FileMapping.ts
- ProjectContextProvider.tsx
- ProjectDataModel.ts
- ProjectQueryLoading.ts
- ProjectReducer.ts
- ProjectSerialization.ts
- pyodideWorker.ts
- pyodideWorkerTypes.ts
- sp_load_draws.py
- sp_patch_matplotlib.py
- usePyodideWorker.ts
- cmdstan.py
- load_args.py
- preamble.py
- run_analysis.py
- run_data.py
- sample.py
- cmdstan.R
- load_args.R
- preamble.R
- run_analysis.R
- run_data.R
- sample.R
- makeRuntime.ts
- data_postamble.R
- sp_load_draws.R
- stan_code_postamble.R
- useWebR.ts
- webR_brms.R
- webR_preamble.R
- InterpreterTypes.ts
- OutputDivUtils.ts
- UserSettings.ts
- UserSettingsProvider.tsx
- SamplerTypes.ts
- StanModelWorker.ts
- StanSampler.ts
- useStanSampler.ts
- CustomTheming.tsx
- EmbeddedBottomBar.tsx
- HomeEmbedded.tsx
- HomePage.tsx
- Sidebar.tsx
- TopBar.tsx
- doesGistExist.ts
- loadFilesFromGist.ts
- saveAsGitHubGist.ts
- baseObjectCheck.ts
- files.ts
- indent.ts
- isMonacoWorkerNoise.ts
- normalizeLineEndings.ts
- prettifyStanParamName.ts
- replaceSpaces.ts
- serializeAsZip.ts
- triggerDownload.ts
- tryFetch.ts
- unreachable.ts
- ExportProjectPanel.tsx
- GistExportPanel.tsx
- GistUpdatePanel.tsx
- InputPersonalAccessToken.tsx
- InvitationToShareArea.tsx
- QuickSharePanel.tsx
- LoadProjectPanel.tsx
- CompilationServerArea.tsx
- PersonalSettingsArea.tsx
- ExportProjectWindow.tsx
- LoadProjectWindow.tsx
- SettingsWindow.tsx
- App.tsx
- index.css
- localStyles.css
- main.tsx
- ProjectDataModel.test.ts
- ProjectQueryLoading.test.ts
- ProjectReducer.test.ts
- ProjectSerialization.test.ts
- empty.ts
- fail.ts
- MockStanModel.ts
- useStanSampler.test.ts
- makePyRuntime.test.ts
- makeRRuntime.test.ts
- files.test.ts
- normalizeLineEndings.test.ts
- prettifyStanParamName.test.ts
- LICENSE
- package.json
- plotly-stan-playground.d.ts
- plotly-stan-playground.js
- README.md
- .prettierignore
- ARCHITECTURE.md
- eslint.config.js
- index.html
- package.json
- README.md
- tsconfig.json
- tsconfig.node.json
- vercel.json
- vite.config.ts
- yarn.lock
- .flake8
- .gitattributes
- .gitignore
- .pre-commit-config.yaml
- CITATION.ctf
- CONTRIBUTING.md
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/flatironinstitute/stan-playground
Downloads the entire project code from GitHub to your computer.
cd stan-playground
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f backend/Dockerfile -t stan-playground .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 stan-playground
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Node.js
EasyPrerequisites
cd gui
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
4. Python
EasyPrerequisites
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
pip install .
Installs the package published on PyPI directly β no need to clone the source.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
