forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manualTestFile.py
44 lines (38 loc) · 931 Bytes
/
manualTestFile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# To run this file either conda or pip install the following: jupyter, numpy, matplotlib, pandas, tqdm, bokeh
# Or run the requirements.txt file included next to this file
#%% Basic Imports
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#%% Matplotlib Plot
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()
#%% Bokeh Plot
from bokeh.io import output_notebook, show
from bokeh.plotting import figure
output_notebook()
p = figure(plot_width=400, plot_height=400)
p.circle([1,2,3,4,5], [6,7,2,4,5], size=15, line_color="navy", fill_color="orange", fill_alpha=0.5)
show(p)
#%% Progress bar
from tqdm import trange
import time
for i in trange(100):
time.sleep(0.01)
#%% [markdown]
# # Heading
# ## Sub-heading
# *bold*,_italic_,`monospace`
# Horizontal rule
# ---
# Bullet List
# * Apples
# * Pears
# Numbered List
# 1. ???
# 2. Profit
#
# [Link](http://www.microsoft.com)
#%% Magics
%whos