Skip to content

Instantly share code, notes, and snippets.

@heiwa4126
Last active December 23, 2019 07:24
Show Gist options
  • Save heiwa4126/fd98b18d80111c169261d88b1ec1c4d0 to your computer and use it in GitHub Desktop.
Save heiwa4126/fd98b18d80111c169261d88b1ec1c4d0 to your computer and use it in GitHub Desktop.
Jupyter notebookの動作確認用でsin波を書くやつ。
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-10, 10, 1000)
y = np.sin(x)
plt.plot(x, y)
plt.show()
@heiwa4126
Copy link
Author

heiwa4126 commented Dec 23, 2019

手順(2019-12頃)

  1. (Win32ではPython 3.7以下をインストール。参照: windows - Jupyter Notebook with Python 3.8 - NotImplementedError - Stack Overflow)
  2. pip3 install -U --user pip
  3. pip3 install -U --user jupyter numpy matplotlib
  4. jupyter notebookで起動。
  5. http://localhost:8888/?token=xxxxにブラウザで接続。あとはUIでいろいろ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment