0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VS Code で Jupyter を動かしてみる

Last updated at Posted at 2020-04-08

VS Code でJupyter が使えるらしいのでやってみました。

###1. 環境
OS:Windows 10
VS Code:1.43.2
拡張機能:Anaconda Extension Pack 1.0.1
Pythonインタープリター:3.7.3 64-bit

###2. 拡張機能 Jupyterのインストール
image.png

###3. コードを入力
image.png

# %%
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)
image.png
image.png
image.png
image.png
image.png
image.png

###5. 参考サイト
https://qiita.com/surei/items/9f25d7efa7c67d55d98f
https://www.atmarkit.co.jp/ait/articles/1806/12/news041.html

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?