Notebook Session Has Crashed

thatsawinner
New Contributor II

I am getting a pop-up error message in the right hand corner of my Databricks session, "Your notebook session has crashed."  This is a notebook I've been working in for a while.

The only line of code I am running is 

pip list

The error at the bottom of my notebook when I run this code is, "Failure starting repl. Try detaching and re-attaching the notebook or clearing the notebook environment."

I have tried the following to fix this and they have not worked:

  • Starting a new session.
  • Terminating the session and starting a new one.
  • Terminating the session, closing the notebook, reopening the notebook, starting a new session.

I have run the "pip list" code in a new notebook and it run just fine.

Why am I getting this error?  How do I fix it and continue to work in my notebook?

Thank you!

 

szymon_dybczak
Esteemed Contributor III

Hi @thatsawinner ,

If you're using serverless then try to set Environment version = 4

1. Open the environment settings tab, using the slider icon on the far right settings bar of the notebook interface

2. Change the environment version to 4 (or later if/when available)

3. Click "Apply"

4. Try to reconnect to serverless compute

szymon_dybczak_0-1761497215052.png

 

 

View solution in original post

Thank you!

szymon_dybczak
Esteemed Contributor III

Hi @thatsawinner ,

No problem. If the answer helped you resolve this issue, please mark it as a solution to a thread.

Hubert-Dudek
Databricks MVP

From the screen, it looks like an interactive cluster—maybe try rebooting it.


My blog: https://databrickster.medium.com/