-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
Updating Python dev container definitions
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"name": "Python 2", | ||
"context": "..", | ||
"dockerFile": "Dockerfile", | ||
"workspaceFolder": "/workspace", | ||
"extensions": [ | ||
"ms-python.python", | ||
"LittleFoxTeam.vscode-python-test-adapter" | ||
"VisualStudioExptTeam.vscodeintellicode" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "Python 3 - Anaconda", | ||
"context": "..", | ||
"dockerFile": "Dockerfile", | ||
"appPort": "5000:5000", | ||
"workspaceFolder": "/workspace", | ||
"extensions": [ | ||
"ms-python.python", | ||
"VisualStudioExptTeam.vscodeintellicode" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "/opt/conda/bin/python" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: Current File (Integrated Terminal)", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "/opt/conda/bin/python" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#%% | ||
import matplotlib | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
# Data for plotting | ||
t = np.arange(0.0, 2.0, 0.01) | ||
s = 1 + np.sin(2 * np.pi * t) | ||
|
||
fig, ax = plt.subplots() | ||
ax.plot(t, s) | ||
|
||
ax.set(xlabel='time (s)', ylabel='voltage (mV)', | ||
title='About as simple as it gets, folks') | ||
ax.grid() | ||
|
||
fig.savefig("test.png") | ||
plt.show() |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.