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 年前713 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容