1 + 1
from IPython.display import Image
Image("images/pycon.png")
import twitter_search
twitter_search.find(["#pyconie", "#rupy"])
from IPython.display import YouTubeVideo
YouTubeVideo("dQw4w9WgXcQ")
%%ruby
(1..10).select { |n| n.even? } .each { |n| puts n }
a = [1, 2, 3]
print a * 2
b = np.array([1, 2, 3])
print b * 2
c = np.array([[1,2,3],[4,5,6]])
print c.T
x = np.random.randn(1000)
y = np.random.randn(1000)
scatter(x, y)
hist(y)
import pandas
df = pandas.read_csv("aapl.csv")
df[["Open", "Close"]].plot()
from text.blob import TextBlob
TextBlob("pycon.ie is really great!").sentiment
se = twitter_search.get_sentiment(["#pyconie", "#rupy"])
%load_ext rmagic
%Rpush se
%R print(summary(se))
%%R
library('ggplot2')
p <- ggplot(se, aes(search, sentiment, fill=search))
p <- p + geom_boxplot() + geom_jitter()
print(p)