In [2]:
import plotly
plotly.__version__


Out[2]:
'1.9.6'

In [3]:
import plotly.plotly as py
import plotly.graph_objs as go

# Create random data with numpy
import numpy as np

N = 1000
random_x = np.random.randn(N)
random_y = np.random.randn(N)

# Create a trace
trace = go.Scatter(
    x = random_x,
    y = random_y,
    mode = 'markers'
)

data = [trace]

# Plot and embed in ipython notebook!
py.iplot(data, filename='basic-scatter')

# or plot with: plot_url = py.plot(data, filename='basic-line')


High five! You successfuly sent some data to your account on plotly. View your plot in your browser at https://plot.ly/~kiov/0 or inside your plot.ly account where it is named 'basic-scatter'
Out[3]:

In [ ]: