Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .local.jenkins.lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ virtualenv:

install:
- $PYINT -m pip install --upgrade pip
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ pyquickhelper pandas_streaming --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ pandas_streaming --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install -r requirements-dev.txt
- $PYINT --version
- $PYINT -m pip freeze
Expand Down
8 changes: 0 additions & 8 deletions _doc/i_ex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
Tous les exemples
=================

Code
====

.. toctree::

auto_examples/index
api/index

Définitions
===========

Expand Down
15 changes: 14 additions & 1 deletion _doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,28 @@ pas ou eu programmer. Le contenu est disponible sur

.. toctree::
:maxdepth: 1
:caption: Lectures

introduction
py/index
practice/index
c_data/index
c_resume/index
articles/index

.. toctree::
:maxdepth: 1
:caption: Exercices

practice/index
auto_examples/index
api/index
i_ex
i_faq

.. toctree::
:maxdepth: 1
:caption: Compléments

license
CHANGELOGS

Expand Down
10 changes: 8 additions & 2 deletions _doc/practice/exams/interro_rapide_20_minutes_2014_10.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@
}
],
"source": [
"dictionnaire_depart.items()[0]"
"try:\n",
" dictionnaire_depart.items()[0]\n",
"except Exception as e:\n",
" print(e)"
]
},
{
Expand Down Expand Up @@ -413,7 +416,10 @@
}
],
"source": [
"iterateur(0, 10)[0]"
"try:\n",
" iterateur(0, 10)[0]\n",
"except Exception as e:\n",
" print(e)"
]
},
{
Expand Down
12 changes: 10 additions & 2 deletions _doc/practice/exams/interro_rapide_20_minutes_2015_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
"\n",
"l = [0, 1, 2, 3, 4]\n",
"i = random.randint(0, 5)\n",
"del l[i] # déclenche une exception de temps en temps"
"try:\n",
" # déclenche une exception de temps en temps\n",
" del l[i]\n",
"except Exception as e:\n",
" print(e)"
]
},
{
Expand Down Expand Up @@ -68,7 +72,11 @@
"for i in range(0, 100):\n",
" l = [0, 1, 2, 3, 4]\n",
" i = random.randint(0, 5)\n",
" del l[i] # déclenche une exception quasi sûrement"
" try:\n",
" # déclenche une exception quasi sûrement\n",
" del l[i]\n",
" except Exception as e:\n",
" print(e)"
]
},
{
Expand Down
9 changes: 6 additions & 3 deletions _doc/practice/exams/td_note_2016.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@
}
],
"source": [
"from pyquickhelper.helpgen import NbImage\n",
"from IPython.display import Image\n",
"\n",
"NbImage(\"exam2016_values.png\")"
"Image(\"exam2016_values.png\")"
]
},
{
Expand Down Expand Up @@ -972,7 +972,10 @@
],
"source": [
"# déclenche une exception\n",
"\"3\" < 4"
"try:\n",
" \"3\" < 4\n",
"except Exception as e:\n",
" print(e)"
]
},
{
Expand Down
Loading