Git Product home page Git Product logo

ipython-in-depth's Introduction

IPython in depth tutorial

Try it out on Binder! Binder

In its current form, this tutorial is meant to be executed with Jupyter notebook 5.0, using IPython 6.0 or newer on Python 3, the latest IPython version compatible with Python 2 is IPython 5.x that may not have the exact same behavior and all the features presented in this tutorial.

You can find our installation instructions for IPython and Jupyter notebook

To get the tutorial, checkout the ipython-in-depth repo:

git clone https://github.com/ipython/ipython-in-depth

Or download current master and unzip it.

At the command line, you can do this with (depending on whether your system uses wget or curl):

wget https://github.com/ipython/ipython-in-depth/zipball/master -O ipython-in-depth.zip

or

curl -L https://github.com/ipython/ipython-in-depth/zipball/master -o ipython-in-depth.zip

And then:

unzip ipython-in-depth.zip

Change directory inside the directory newly created:

cd ipython-in-depth

You can then start the Jupyter notebook server at a terminal with:

jupyter notebook

Docker images

The tutorial do reference a couple of docker images that are quite heavy (several GB). Please do not download them on conference wifi. You may want to populate the Docker Cache you may want to use the following command ahead of time:

$ docker pull jupyter/datascience-notebook

The image contains a installation of the Jupyter notebook with R, Julia, Python2, Python3 and a couple of libraries for each language.

ipython-in-depth's People

Contributors

arve0 avatar atlas7 avatar blink1073 avatar carreau avatar djcomlab avatar ellisonbg avatar fperez avatar jasongrout avatar jdfreder avatar jrmontag avatar marktab avatar minrk avatar mjbright avatar nelisw avatar rgbkrk avatar sccolbert avatar takluyver avatar timclicks avatar xsc27 avatar yamt avatar zacharylawrence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipython-in-depth's Issues

Invalid character in notebook filename

The file examples/Notebook/What is the IPython Notebook?.ipynb contains a character (?) which is invalid on Windows.

This leads to issues when cloning the repo or unzipping an archive:

oberstet@THINKPAD-T410S /f/scm/3rdparty
$ git clone [email protected]:ipython/ipython-in-depth.git
Cloning into 'ipython-in-depth'...
remote: Counting objects: 1255, done.
remote: Total 1255 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1255/1255), 12.23 MiB | 39.00 KiB/s, done.
Resolving deltas: 100% (680/680), done.
error: unable to create file examples/Notebook/What is the IPython Notebook?.ipynb (Invalid argument)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

Error on checkout on windows

C:\data\external\ipython-in-depth>git checkout origin/master -f
error: unable to create file notebooks/Notebook/What is the IPython Notebook?.ip
ynb (Invalid argument)
HEAD is now at 3a95c0c... Last minute changes.

I suspect that windows does not like ?. Would it be possible to rename the notebook?

Nodejs==9.11?

I am trying to transfer environment.yml to requirements.txt and use pip install -r requirements.txt to install all packages.. Looks like nodejs package only have 0.1 version...??

Is Nodejs we install here a python package?

FileNotFoundError

Question : Error pop-up but I cannot find the path - /srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/.
Which path could I put "chromedriver.exe" back to solve FileNotFoundError?

Cell : Driver = webdriver.Chrome(r'C:\Users\chromedriver.exe')

Error:

FileNotFoundError Traceback (most recent call last)
/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/service.py in start(self)
75 stderr=self.log_file,
---> 76 stdin=PIPE)
77 except TypeError:

/srv/conda/envs/notebook/lib/python3.6/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
728 errread, errwrite,
--> 729 restore_signals, start_new_session)
730 except:

/srv/conda/envs/notebook/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1363 err_msg += ': ' + repr(err_filename)
-> 1364 raise child_exception_type(errno_num, err_msg, err_filename)
1365 raise child_exception_type(err_msg)

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\chromedriver.exe': 'C:\Users\chromedriver.exe'

During handling of the above exception, another exception occurred:

WebDriverException Traceback (most recent call last)
in
----> 1 Driver = webdriver.Chrome(r'C:\Users\chromedriver.exe')

/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py in init(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:

/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/service.py in start(self)
81 raise WebDriverException(
82 "'%s' executable needs to be in PATH. %s" % (
---> 83 os.path.basename(self.path), self.start_error_message)
84 )
85 elif err.errno == errno.EACCES:

WebDriverException: Message: 'C:\Users\chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

spaces in file names and spaces in links lead to broken markdown links in tutorial

The front page notebook if accessed via clicking on the Python tutorial on the jupyter try website.
I assume it has to do with the spaces in the file names in the provided path. Some have them and the links apparently work in github's markdown but not in the markdown used by jupyter. A few links in the notebook substitute the spaces in the links with %20 and then they work.

This is extra annoying if you are visiting for the first time and have no clue how to fix the links temporarily to proceed.
Also, who would put spaces into file names? This can lead to a lot of issues under some systems.

  • fix file names
  • fix broken links
  • also there is a mistake at the end of this part of the tutorial. You want to explain how to open a terminal but write one should click on "Text File"

SciPy 2014 Display&Widget Tut TODOs

  • Shrink or totally remove the introductory section.
  • Add figures to widget section:
    20140704_114710
    20140704_121632
    20140704_121956
  • Fix "walls of text" in custom widget section.
  • Enable 'paulscroll' feature.

00 - What's new in 1.0 kernel busy nuisance with New cell magics

python 3.2
running ipython3 notebook
latest GIT pull

In order to get New cell magics to run I have to close down the notebook and restart it. Having to restart the kernel to get new cell magics to work is undesirable behavior.

Initially I run the cells then I came to new cell magics %%html.
kernel busy and stays busy.
the terminal displays no errors.
I shut down the kernel and then restart 00 - What's new in 1.0
THEN the new cell magics will work but I have to restart the kernel. I can reproduce this behavior.

Same for all new cell magics
%%html
%%latex
%%javascript

thank you

df2.iloc[2]

NameError Traceback (most recent call last)
in
----> 1 df2.iloc[2]

NameError: name 'df2' is not defined

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.