In [3]:
1 + 1
Out[3]:
2

Pycon.ie showcase

  • Rich display system
  • Multi language support
  • Tab completion
  • Distrubed support
$$\sum_{n=1}^i x_i = \frac{n(n+1)}{2}$$
In [6]:
from IPython.display import Image
Image("images/pycon.png")
Out[6]:
In [8]:
import twitter_search
twitter_search.find(["#pyconie", "#rupy"])

Hashtag: #pyconie

NameTweet
qba73@mr_ud : "#Python is awesome" - very interesting talk and demos about Python in science! #PyConIE http://t.co/HohFGefSlH
cradonnRT @_ashfall_: Slides for my talk titled "The Twisted Way" earlier today: https://t.co/5zMTXDZZQo #PyConIE
thegrieveRT @roguelynn: Prism slides for #pyconie keynote: https://t.co/OaFfMNgFdV - associated blog post: http://t.co/RjN647zySR
automatthiasLighting talk topics. Start at 17:30. #PyConIE http://t.co/LWN3aj40j4
nailorRT @_ashfall_: Slides for my talk titled "The Twisted Way" earlier today: https://t.co/5zMTXDZZQo #PyConIE
paul_cormackRT @qba73: best cakes, best talks, best community ;-) relax and enjoy 2nd day of the conference! #PyConIE 2013
evildmpIf you're taking part in the Don't be afraid to commit workshop at the #PyConIE, take a moment to check requirements: http://t.co/qWt5TIfTUM
paul_cormackRT @jaimebuelta: Just uploaded my slides for today's talk at #pyconIE (Make beautiful Python code) http://t.co/WEI7Ovc8RH
paul_cormackRT @roguelynn: Prism slides for #pyconie keynote: https://t.co/OaFfMNgFdV - associated blog post: http://t.co/RjN647zySR
grimborgRT @roguelynn: Prism slides for #pyconie keynote: https://t.co/OaFfMNgFdV - associated blog post: http://t.co/RjN647zySR
paul_cormackRT @_ashfall_: Slides for my talk titled "The Twisted Way" earlier today: https://t.co/5zMTXDZZQo #PyConIE
qba73"#Python community encourage people to ask questions" @AutomatedTester #PyConIE 2013
roguelynnRT @_ashfall_: Slides for my talk titled "The Twisted Way" earlier today: https://t.co/5zMTXDZZQo #PyConIE
paul_ogradyRT @luigii249: Very good, important talk about social hierarchies and development communities from @AutomatedTester at #PyConIE
_ashfall_Slides for my talk titled "The Twisted Way" earlier today: https://t.co/5zMTXDZZQo #PyConIE

Hashtag: #rupy

NameTweet
stuarthallowayMy #RuPy slides "Clojure In Ten Big Ideas" https://t.co/pUqIu90U33
pat_shaughnessyCouldn’t make it to Budapest? @teropa is taking some great, detailed notes on many amazing #rupy talks see: http://t.co/ZtZE5VhHsy
ashedrydenDifference in garbage collection between ruby and python: ruby is like living with a hoarder, python is like living with a neat freak. #rupy
AdrienGiboireLet's meet tonight at Könyvtár klub, just in front of the venue for the last night of @RuPy! #rupy #rupy2013
AdrienGiboireRT @olleolleolle: #rupy Awesome talk on teaching. http://t.co/oL6fK4nyy3
_inossidabileMy #rupy talk on Data-Centric security: https://t.co/KTnIJHLUQh
olleolleolle#rupy Awesome talk on teaching. http://t.co/oL6fK4nyy3
jm_toballRT @pat_shaughnessy: Couldn’t make it to Budapest? @teropa is taking some great, detailed notes on many amazing #rupy talks see: http://t.c…
AdrienGiboireRT @teropa: There was a special lightning talk at @RuPy/#RuPy today http://t.co/GiN7tCBj2Z
proudlygeekbits of JavaScript history in Nick Fisher's talk at #rupy
jplanaRT @pneumark: My #rupy talk on scaling @prezi from 25 to 25 million users: http://t.co/L7MVbTO5VG
_inossidabileRT @andreiursan: .@_inossidabile good talk. Looking forward to try #ProtectorGem #rupy http://t.co/f9SdOKzUT4
flaper87RT @tylersiprova: There is still time to register for the Red Hat prizes at #RuPy! Drawing at 15:30 in our hiring session.
trekdemoDigitalNatives’ session starts in 10 minutes - room 3 #RuPy #rupy13
andreiursan.@_inossidabile good talk. Looking forward to try #ProtectorGem #rupy http://t.co/f9SdOKzUT4
guestcoderRT @ManningBooks: Hey #rupy! Save 44% on #Ruby titles and more with code rupycf at http://t.co/OdkWpwUDeg
_inossidabileRT @teropa: Notes from @alex_gaynor's talk http://t.co/m4f03N2IJV and from @_inossidabile's talk http://t.co/NmOEwJNQF9 at #RuPy
_inossidabileRT @SmartMedia_cz: Make your Rails apps more secure with Protector http://t.co/puMB9hJoWN (for ActiveRecord, Sequel) #rupy #rupy2013
In [37]:
from IPython.display import YouTubeVideo
YouTubeVideo("dQw4w9WgXcQ")
Out[37]:
In [ ]:
 
In [11]:
%%ruby
(1..10).select { |n| n.even? } .each { |n| puts n }
2
4
6
8
10
In [12]:
a = [1, 2, 3]
print a * 2
[1, 2, 3, 1, 2, 3]
In [13]:
b = np.array([1, 2, 3])
print b * 2
[2 4 6]
In [15]:
c = np.array([[1,2,3],[4,5,6]])
print c.T
[[1 4]
 [2 5]
 [3 6]]
In [18]:
x = np.random.randn(1000)
y = np.random.randn(1000)
scatter(x, y)
Out[18]:
<matplotlib.collections.PathCollection at 0x1143d5f10>
In [20]:
hist(y)
Out[20]:
(array([  2,  12,  56, 176, 258, 256, 176,  49,  14,   1]),
 array([-3.70962289, -2.97254236, -2.23546183, -1.4983813 , -0.76130077,
       -0.02422023,  0.7128603 ,  1.44994083,  2.18702136,  2.92410189,
        3.66118242]),
 <a list of 10 Patch objects>)
In [27]:
import pandas
df = pandas.read_csv("aapl.csv")
df[["Open", "Close"]].plot()
Out[27]:
<matplotlib.axes.AxesSubplot at 0x115089bd0>
In [30]:
from text.blob import TextBlob
TextBlob("pycon.ie is really great!").sentiment
Out[30]:
(1.0, 0.75)
In [31]:
se = twitter_search.get_sentiment(["#pyconie", "#rupy"])
In [33]:
%load_ext rmagic
In [35]:
%Rpush se
%R print(summary(se))
    search            sentiment        objectivity    
 Length:103         Min.   :-1.0000   Min.   :0.0000  
 Class :array       1st Qu.: 0.0000   1st Qu.:0.0000  
 Mode  :character   Median : 0.0000   Median :0.5000  
                    Mean   : 0.1772   Mean   :0.4014  
                    3rd Qu.: 0.5000   3rd Qu.:0.7250  
                    Max.   : 1.0000   Max.   :1.0000  
In [36]:
%%R
library('ggplot2')
p <- ggplot(se, aes(search, sentiment, fill=search))
p <- p + geom_boxplot() + geom_jitter()
print(p)
In [ ]: