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
已提問 2 年前檢視次數 714 次
2 個答案
0
已接受的答案

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
專家
已回答 2 年前
  • 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..

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南