# bmb.Model Progress Bar Freezes on DataBricks

**URL:** <https://discourse.pymc.io/t/bmb-model-progress-bar-freezes-on-databricks/17159>\
**Category:** General\
**Created:** [July 2, 2025, 12:35am UTC](https://discourse.pymc.io/t/bmb-model-progress-bar-freezes-on-databricks/17159 "2025-07-02T00:35:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricija](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@patricija](https://discourse.pymc.io/u/patricija)\
**Post date:** [July 2, 2025, 12:35am UTC](https://discourse.pymc.io/t/bmb-model-progress-bar-freezes-on-databricks/17159/1 "2025-07-02T00:35:39Z")

</div>

![Screenshot 2025-07-01 at 4.55.04 PM](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/2X/7/75ffb044a83fa715da5bf976c4645e14a6346fdf.png)

Hello,

I’m trying to run the model, but after around 6 minutes, the progress bar tends to completely freeze and it stops updating the progress (as a Databricks widget).

Could there be a reason for this? Is it related to the Databricks socket connections and widgets?  
Are there any other ways to display progress bars of the bmb model fitting?

```auto
bmb.Model(
    ".... ",
    pandas_df,
    family="bernoulli"
)

```

Sometimes, progress bar does not show anything at all and shows the error:

```auto
Loading the widget is taking longer than expected. 

```

**I’d really appreciate any help with the progress bar!** 😊

---

<div class="post-metadata">

**Author:** ![jessegrabowski](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jessegrabowski/32/5010_2.png) [@jessegrabowski](https://discourse.pymc.io/u/jessegrabowski)\
**Post date:** [July 2, 2025, 4:23am UTC](https://discourse.pymc.io/t/bmb-model-progress-bar-freezes-on-databricks/17159/2 "2025-07-02T04:23:04Z")

</div>

The PyMC progress bar uses the `rich.progress` package. I don’t know anything about databricks, but if they don’t play nice, that gives you something to search for?

External samplers (nutpie, numpyro, blackjax) all use their own progress bars (numpyro uses `fastprogress`, nutpie has a custom one), so you might be able to just switch the sampler to fix it. The [bambi docs](https://bambinos.github.io/bambi/notebooks/alternative_samplers.html) have details on choosing a sampling backend.
