Giter Site home page Giter Site logo

pydatalab's Introduction

datalab

Google datalab Python package. Used in [Google Cloud Datalab] (https://github.com/GoogleCloudPlatform/datalab) and can be used in Jupyter Notebook.

This adds a number of Python modules such as datalab.bigquery, datalab.storage, etc, for accessing [Google Cloud Platform services] (https://cloud.google.com/) as well as adding some new cell magics such as %chart, %bigquery, %storage, etc.

See https://github.com/googledatalab/notebooks for samples of using this package.

Prerequisites

You will need the Typscript compiler installed. In future we should be installable from PyPI.

Installation

First:

git clone https://github.com/googledatalab/pydatalab.git
cd pydatalab

Then do one of the folowing:

./install-virtualenv.sh  # For use in Python virtual environments
./install-no-virtualenv.sh  # For installing in a non-virtual environment

You can ignore the message about running jupyter nbextension enable; it is not required.

Using in Jupyter

In a notebook cell, enable with:

%load_ext datalab.kernel

Alternatively add this to your ipython_config.py file in your profile:

c = get_config()
c.InteractiveShellApp.extensions = [
    'datalab.kernel'
]

You will typically put this under ~/.ipython/profile_default. See [http://ipython.readthedocs.io/en/stable/development/config.html] (http://ipython.readthedocs.io/en/stable/development/config.html) for more about IPython profiles.

If you want to access Google Cloud Platform services such as BigQuery, you will also need to install [gcloud] (https://cloud.google.com/sdk/gcloud). You will need to use gcloud to authenticate; e.g. with:

gcloud auth login

You will also need to set the project ID to use; either set a PROJECT_ID environment variable to the project name, or call set_datalab_project_id(name) from within your notebook.

Documentation

You can read the Sphinx generated docs at: http://googledatalab.github.io/pydatalab/

pydatalab's People

Contributors

chmeyers avatar di-ku avatar gramster avatar nikhilk avatar ojarjur avatar parthea avatar qimingj avatar supriyagarg avatar yebrahim avatar

Watchers

 avatar

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.