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
preguntada hace 2 años713 visualizaciones
2 Respuestas
0
Respuesta aceptada

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
EXPERTO
respondido hace 2 años
  • 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..

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas