Skip to content

willingc/ipython-trainingwheels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

Stories in Ready

IPython Training Wheels

This repository contains an alternative IPython Notebook profile with a few bells and whistles taken out of the default profile (with some other features added). To see the kinds of features we're adding, see the standard imports button.

Mozilla Science Lab Global Summer Sprint

Help us push forward on this project as part of Mozilla Science Lab Global Sprint.
Install the profile as described below, check the issue list, and start hacking.

You can read more about IPython configuration for how to create a new profile. The default template for the notebook (for reference) can be found here.
Most customizations in the profile are found in custom/custom.js.

What is an IPython Notebook profile?

IPython Notebook comes with a set of a default configurations that can be modified. Loading the notebook with a different profile will enable a different set of configurations as described in that profile. Profiles are typically stored in The IPython directory, but you can also keep a profile in the current working directory.

Using this Profile

To store this profile in your IPython directory, clone this repostory into your ~/.ipython directory using the commands:

cd ~/.ipython
git clone https://github.com/ivanov/ipython-trainingwheels.git profile_swc

Thereafter, just run ipython notebook --profile=swc in order to use the training-wheels profile with the notebook.

Alternatively, you can clone this repository wherever you want, and then just specify the location in order to use the profile. To do so, use the following commands:

git clone https://github.com/ivanov/ipython-trainingwheels.git /path/to/some/dir
ipython notebook --profile-dir=/path/to/some/dir

Did it work?

We've added visual element to help you verify that you are running this profile, The top of the Notebook will be "Software Carpentry Grey" as opposed to white, like this:

The Help menu in the Notebook should have extra entries ("Training Wheels Help" and "Software Carpentry"), like this:

There will be an extra "Training Wheels" top level menu:

Other features:

  • "Standard imports": create a cell with canned imports from the training wheels menu, along with a markdown cell above it that has links and a description of what each of the imports does.

  • "System information": create and execute a cell that reports basic information about the user's machine (version of OS, Python, IPython, etc)

  • A textual mode indicator (for displaying IPython's Command and Edit modes). Clicking on it brings up the keyboard shortcuts.

  • Digital "stickies": clicking on the top header of an open notebook will rotate it from being gray/neutral, red ('need help') and green ('good to go'):

2014-07-28-174050_665x70_scrot

2014-07-28-174101_638x68_scrot

2014-07-28-174110_653x68_scrot

About

A beginner student friendly profile for IPython notebook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.6%
  • CSS 7.4%