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: 

Python Graph not showing

Syed1
New Contributor III

Hi , I have run this code

import matplotlib.pyplot as plt

import numpy as np

plt.style.use('bmh')

%matplotlib inline

x = np.array([5,7,8,7,2,17,2,9,4,11,12,9,6])

y = np.array([99,86,87,88,111,86,103,87,94,78,77,85,86])

p= plt.scatter(x, y)

display

command runs but no result is showing . I am using databricks 7.6 version any help will be greatly appreciated

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

I think you need to upgrade runtime as I've just tested it and it worked like a charm 🙂

imagen 

View solution in original post

9 REPLIES 9

Hubert-Dudek
Esteemed Contributor III

I think you need to upgrade runtime as I've just tested it and it worked like a charm 🙂

imagen 

Syed1
New Contributor III

can you please explain upgrade runtime? i again try the same command but it show nothing the command execute successfully

Syed1
New Contributor III

i am using 7.3 LTS ML (includes Apache Spark 3.0.1, Scala 2.12)

can you please tell which version are you using

Kaniz_Fatma
Community Manager
Community Manager

Hi @Syed Ubaid​ , I'm using 7.3 LTS ML (includes Apache Spark™ 3.0.1, Scala 2.12).

It worked very smoothly.

imageimage 

Can you please restart your cluster and check again?

Anonymous
Not applicable

I got it to work on 9.1 LTS

Hubert-Dudek
Esteemed Contributor III

Great to hear. I was using 10.4

Kaniz_Fatma
Community Manager
Community Manager

Hi @Syed Ubaid​ , Were you able to recheck after restarting your cluster?

User16725394280
Contributor II

@Syed Ubaid​  i tried with 7.3 LTS and its works fine.

Screenshot 2022-04-08 at 5.11.05 PM

Hi @Syed Ubaid​ ,

Just a friendly follow-up. Do you still need help or any of the responses from above help you to resolved your issues? Please let us know.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group