cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Notebook execution keeps showing "Fetching result" endlessly

himoshi
New Contributor II

Hello, 

I am executing a very simple notebook with only two cells. In the first cell, I'm just defining some variables and printing the result. 

The second cell is more complex and it basically grabs those variables, parses a yaml file, and prints the results. I don't see any obvious code errors and can rule that out. I also tried the following: 

1. de-attach and re-attach serverless compute

2. clear notebook outputs and re-run

3. create an all purpose cluster and re-run

4. create an entirely new notebook and move my code over

and basically any combination of the above three options. The notebook execution shows as "complete" but the results won't display. 

1 REPLY 1

Vidhi_Khaitan
Databricks Employee
Databricks Employee

Hi @himoshi Good Day!
1. Could you use print() instead of display()?
2.If you're printing a large YAML or dictionary object directly (e.g. print(parsed_yaml) or display(parsed_yaml)),
try:

import json
print(json.dumps(parsed_yaml, indent=2)[:500]) # Print only first 500 characters
3. Could you also try saving the output to a temp file location and reading it back to see if you are actually getting any results?
 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now