GithubHelp home page GithubHelp logo

tutopython's Introduction

IPython / Scipy tutorial

Installation

Conda / Anaconda

First we need nuts & bolts.

  • Conda [doc] is a package manager application (pip + venv + virtualenvwrapper)
  • Anaconda [link] is a Python distribution which include more than 300 of the most popular Python packages for science, math, engineering, and data analysis.

Then we set up an environment for the tutorial:

$ conda create -n tutopython python=3.4
$ source activate tutopython

Python packages

It's now time to install some packages :

$ conda install ipython numpy scipy matplotlib

and you're ready to play with ipython's command line interface.

$ ipython
Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar  6 2015, 12:07:41)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]:

But a more powerful environment is available to carry out exploratory computation and data analysis : notebooks.

IPython notebooks

Notebooks are interactive computational environments, in which you can combine code execution, rich text, mathematics, plots and rich media. See http://ipython.org/notebook.html.

illustration

Notebooks are stored as JSON files with a .ipynb extension.

$ conda install ipython-notebook
$ ipython notebook
[I 09:30:28.237 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[I 09:30:29.031 NotebookApp] Serving notebooks from local directory: /Users/honnorat/Documents/YeastLab/tutopython
[I 09:30:29.031 NotebookApp] 0 active kernels
[I 09:30:29.032 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 09:30:29.032 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 09:30:38.422 NotebookApp] Notebook tuto_filter.ipynb is not trusted
[I 09:30:39.040 NotebookApp] Kernel started: ce530cd1-a559-4e8e-895c-c9543ea61f4f

Now you can open your browser at the given address http://localhost:8888/ and create a new notebook.

Useful reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.