Get Python Plots to Show In Cloud9

0

What is the workflow for seeing a plot when developing in cloud9? for example, the following code will show me a plot in VSCode or as a Jupyter Notebook:

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2 * np.pi, 200)
y = np.sin(x)

fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()
AdamTTP
asked 2 years ago700 views
2 Answers
0
Accepted Answer

Cloud9 does not have a rendering engine for Jupyter as VSCode and Jupyter Notebook. This is why that code would not show anything in Cloud9. You can use Sagemaker Studio or Sagemaker Labs to have hosted Jupyter notebook instances.

AWS
EXPERT
answered 2 years ago
  • Sagemaker will be a new service to me, I will check it out. Thanks so much for confirming my suspicion that this would not be possible.

0

do you mean for plain python code for VSCode it is possible to show plots for remote or online work on AWS? it is known using jupyter is not professional .... professional use IDEs like VScode or Charm , etc..

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions