Skip to content
Open
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
1 change: 0 additions & 1 deletion _doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from sphinx_runpython.github_link import make_linkcode_resolve
from teachpyx import __version__


extensions = [
"nbsphinx",
"sphinx.ext.autodoc",
Expand Down
2 changes: 1 addition & 1 deletion _doc/examples/prog/plot_einstein_riddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
On commence par la fonction `permutation`:
qui énumère les permutations d'un ensemble :
"""

import copy
from io import StringIO
import pandas


##########################
# Fonction permutation
# ====================
Expand Down
1 change: 0 additions & 1 deletion _doc/examples/prog/plot_float_and_double_rouding.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import pandas
import matplotlib.pyplot as plt


rnd = numpy.random.random(100000000)
rnd.shape, rnd.dtype

Expand Down
1 change: 1 addition & 0 deletions _doc/examples/prog/plot_gil_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
On mesure le temps nécessaire pour créer deux liste et comparer ce
temps avec celui que cela prendrait en parallèle.
"""

import timeit
import time
from concurrent.futures import ThreadPoolExecutor
Expand Down
1 change: 1 addition & 0 deletions _doc/examples/prog/plot_numpy_tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
accéder à un élément en particulier
===================================
"""

import timeit

import numpy
Expand Down
2 changes: 0 additions & 2 deletions _doc/examples/prog/plot_pandas_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
============================
"""


import pandas


data = [{"a": 1, "b": 2}, {"a": 10, "b": 20}, {"b": 3}, {"b": 4}]
df = pandas.DataFrame(data)
df
Expand Down
2 changes: 1 addition & 1 deletion _doc/examples/prog/plot_serialisation_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Ecriture (json)
+++++++++++++++
"""

from io import StringIO, BytesIO
import timeit
import json
Expand All @@ -25,7 +26,6 @@
import cloudpickle
import pickle


data = {
"records": [
{
Expand Down
1 change: 1 addition & 0 deletions _doc/examples/prog/plot_serialisation_protobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
On récupère l'exemple du `tutorial
<https://developers.google.com/protocol-buffers/docs/pythontutorial>`_.
"""

import os
import sys
import timeit
Expand Down
1 change: 1 addition & 0 deletions _doc/examples/prog/plot_tarabiscote.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
listes contenues dans ``ens``. Le résultat retourné est effectivement
celui désiré mais la fonction modifie également la liste ``ens``, pourquoi ?
"""

import math
import copy
import numpy
Expand Down
Loading
Loading