Permalink
Browse files

update to ipython 3.1, requirements, documentation

  • Loading branch information...
sdpython committed Apr 15, 2015
1 parent c1523da commit 7009798d2c873c0b71aeb5c9df4cbbaffe53650c
View
@@ -219,7 +219,7 @@ temp_*
out_*
*/sphinxdoc/source/index_*
*/sphinxdoc/source/readme.*
*/sphinxdoc/source/LICENSE.*
*/sphinxdoc/source/LICENSE.txt
*/sphinxdoc/source/filechanges.*
version.txt
*/sphinxdoc/source/code_beatrix/*

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,100 +1,94 @@
{
"metadata": {
"name": "",
"signature": "sha256:5360e8f8a5681e562bba70be723037c56180d909b0e8fa9c11ecddc9ef5e0f3e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Exemple de notebooks"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import pandas"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"df = pandas.DataFrame ( [ dict(x=1.0, y=1.0), dict(x=1.5, y=2)] )"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"df"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>x</th>\n",
" <th>y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td> 1.0</td>\n",
" <td> 1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td> 1.5</td>\n",
" <td> 2</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"metadata": {},
"output_type": "pyout",
"prompt_number": 4,
"text": [
" x y\n",
"0 1.0 1\n",
"1 1.5 2"
]
}
],
"prompt_number": 4
},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exemple de notebooks"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import pandas"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"df = pandas.DataFrame ( [ dict(x=1.0, y=1.0), dict(x=1.5, y=2)] )"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"data": {
"text/html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>x</th>\n",
" <th>y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td> 1.0</td>\n",
" <td> 1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td> 1.5</td>\n",
" <td> 2</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" x y\n",
"0 1.0 1\n",
"1 1.5 2"
]
},
"execution_count": 4,
"metadata": {},
"outputs": []
"output_type": "execute_result"
}
],
"metadata": {}
"source": [
"df"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": []
}
]
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,10 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# documentation build configuration file, created by
# sphinx-quickstart on Fri May 10 18:35:14 2013.
#
import sys
import os
import datetime
@@ -4,6 +4,8 @@ Les enfants codaient
*à la découverte de la programmation et des algorithmes*
:ref:`l-README`, :ref:`blog <ap-main-0>`
On programme pour faire des jeux, des sites internets, des recherches scientifiques,
pour automatiser une tâche qu'on ne souhaite plus faire à la main.
@@ -0,0 +1,7 @@
.. _l-license:
License
=======
.. include:: LICENSE.txt
:literal:
@@ -0,0 +1,66 @@
"""
@brief test log(time=0s)
"""
import sys
import os
import unittest
import re
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not in sys.path:
sys.path.append(path)
import src
try:
import pyquickhelper
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper
from pyquickhelper import fLOG, explore_folder_iterfile
from pyquickhelper.ipythonhelper import upgrade_notebook
class TestConvertNotebooks(unittest.TestCase):
def test_convert_notebooks(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
fold = os.path.abspath(os.path.dirname(__file__))
fold2 = os.path.normpath(
os.path.join(fold, "..", "..", "_doc", "notebooks"))
for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"):
t = upgrade_notebook(nbf)
if t:
fLOG("modified", nbf)
fold2 = os.path.normpath(os.path.join(fold, "..", "..", "_unittests"))
for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"):
t = upgrade_notebook(nbf)
if t:
fLOG("modified", nbf)
if __name__ == "__main__":
unittest.main()
View
@@ -1,10 +1,15 @@
if "%1"=="" goto default_value:
set path=%path%;%1;%1\Scripts
goto custom_python:
set pythonexe=%1
goto nextn:
:default_value:
set path=%path%;c:\Python34;c:\Python34\Scripts
if exist c:\Python34_x64 goto py64:
set pythonexe=c:\Python34
goto nextn:
:custom_python:
ipython3 notebook --notebook-dir=_doc\notebooks
rem ipython3 help notebook
:py64:
set pythonexe=c:\Python34_x64
:nextn:
set path=%path%;%pythonexe%;%pythonexe%\Scripts
ipython3 notebook --notebook-dir=_doc\notebooks

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,68 @@
Cython
Flask
Flask-SQLAlchemy
Jinja2
Markdown
MarkupSafe
PyContracts
PyYAML
Pygments
Sphinx
Werkzeug
XlsxWriter
ansi2html
ansiconv
argparse
autopep8
brewer2mpl
cloud-sptheme
coverage
dateutils
docutils
hachibee-sphinx-theme
ipython
jsonschema
lxml
matplotlib
mechanize
numpy
openpyxl
pandas
pkgtools
pycparser
pyparsing
pyreadline
python-dateutil
python-jenkins
pytz
pyzmq
requests
requests-oauthlib
simplejson
six
solar-theme
sphinx-bootstrap-theme
sphinx-readable-theme
sphinx-rtd-theme
sphinxcontrib-fancybox
sphinxcontrib-images
sphinxcontrib.youtube
sphinxjp.themes.basicstrap
sphinxjp.themes.revealjs
sphinxjp.themes.sphinxjp
virtualenv
wheel
wild-sphinx-theme
xlrd
xmltodict
pyquickhelper
antlr4-python3-runtime
azure
dbfread
goslate
python-linkedin
flake8
pyflakes
mccabe
pep8
feedparser
Oops, something went wrong.

0 comments on commit 7009798

Please sign in to comment.