Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fit.summary() not working in jupyter notebooks

Open
#744 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter-notebook, python

Research direction

Reproduce the Hello World tutorial in a Jupyter notebook and compare fit.summary() and fit.diagnose() with the same tutorial run as a Python file. Start by tracing the RuntimeError and signal 6 from the diagnose command; done means both calls work in the notebook without crashing.

Written by the indexing model from the issue text.

Description

Summary:

fit.summary() crashes when run in a jupyter notebook.

Description:

fit.summary() and fit.diagnose() don't work when following the Hello World tutorial in a jupyter notebook.

The tutorial works fine when run as a python file.

Additional Information:

Error RuntimeError: Command ['/Users/ff/.cmdstan/cmdstan-2.34.1/bin/diagnose', '/var/folders/2r/tmwm99ns51qfspk50vj23snh0000gn/T/tmpvoigfpsl/bernoulliomselojt/bernoulli-20240408175756_1.csv', '/var/folders/2r/tmwm99ns51qfspk50vj23snh0000gn/T/tmpvoigfpsl/bernoulliomselojt/bernoulli-20240408175756_2.csv', '/var/folders/2r/tmwm99ns51qfspk50vj23snh0000gn/T/tmpvoigfpsl/bernoulliomselojt/bernoulli-20240408175756_3.csv', '/var/folders/2r/tmwm99ns51qfspk50vj23snh0000gn/T/tmpvoigfpsl/bernoulliomselojt/bernoulli-20240408175756_4.csv'] terminated by signal 6 Unknown error: -6

Current Version:
INSTALLED VERSIONS
---------------------
python: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ]
python-bits: 64
OS: Darwin
OS-release: 23.4.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: None
LOCALE: (None, 'UTF-8')
cmdstan_folder: /Users/ff/.cmdstan/cmdstan-2.34.1
cmdstan: (2, 34)
cmdstanpy: 1.2.2
pandas: 2.2.1
xarray: 2024.3.0
tqdm: 4.66.2
numpy: 1.26.4
Dominant language
Python
Stars
198
Forks
81
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stan-dev/cmdstanpy

All issues in stan-dev/cmdstanpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.