VS Code에서 Jupyter를 실행해 보세요.
2400 단어 파이썬matplotlibVSCodeJupyternumpy
1. 환경
OS: Windows 10
VS 코드: 1.43.2
확장 기능: Anaconda Extension Pack 1.0.1
파이썬 인터프리터 : 3.7.3 64-bit
2. 확장 기능 Jupyter 설치

3. 코드 입력

# %%
from matplotlib import pyplot as plt
import numpy as np
# %%
x = np.linspace(-10, 10, 100)
# %%
y = (x**3) + (5*x**2) + (2*x)
# %%
print(x)
#%%
print(y)
#%%
plt.plot(x, y)
plt.show()
# %%
z = np.sin(x)
# %%
print(z)
# %%
plt.plot(x, z)
plt.show()
4. 코드 실행(Run Cell)






5. 참고 사이트
htps : // 코 m/세이/있어 ms/9f25d7 에후아7c67d55d98f
htps //w w. 아 t r t. 이. jp / ai t / archi c0s / 1806/12 / 네 ws041. HTML
Reference
이 문제에 관하여(VS Code에서 Jupyter를 실행해 보세요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/azumabashi/items/9a8a034501982cb09132텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)