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
posta 2 anni fa713 visualizzazioni
2 Risposte
0
Risposta accettata

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
ESPERTO
con risposta 2 anni fa
  • 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..

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande