Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
2de167d8
Commit
2de167d8
authored
Jan 30, 2021
by
Romain Casati
Browse files
Updating documentation to last API and fixes.
parent
927d10c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
doc/doc.tex
View file @
2de167d8
...
...
@@ -190,7 +190,7 @@ ou de dessiner avec Turtle ;
\end{center}
%
Vous pouvez aussi afficher des cartes (avec Folium), des graphes
(avec Graphviz) ou même faire du traitement d'image (avec
Matplotlib
).
(avec Graphviz) ou même faire du traitement d'image (avec
PIL
).
\begin{center}
%
...
...
@@ -202,7 +202,7 @@ Vous pouvez aussi afficher des cartes (avec Folium), des graphes
%
\hfil
%
\includegraphics
[width=0.3\textwidth]
{
medias/screenshots/gallery/
traitement-image
}
\includegraphics
[width=0.3\textwidth]
{
medias/screenshots/gallery/
moon
}
%
\end{center}
%
...
...
@@ -1083,7 +1083,8 @@ télécharger.
Nous avons vu qu'il était possible d'enregistrer le script ou le
notebook en cours d'édition mais comment récupérer un fichier annexe
que l'on a modifié ou encore une image que l'on a créé avec Python ?
C'est assez simple, il suffit d'utiliser la fonction
C'est assez simple, après avoir importé le module
\pil
{
basthon
}
avec
\pil
{
import basthon
}
, il suffit d'utiliser la fonction
\hfil
\pil
{
basthon.download('chemin/vers/mon/fichier.truc')
}
.
...
...
@@ -1206,95 +1207,7 @@ Voici la sortie de la commande \pil{help('modules')}, permettant de
lister les modules importables avec Basthon..
%
\begin{scriptsize}
\begin{pythoncmdcode}
Please wait a moment while I gather a list of all available modules...
Bio binascii joblib runpy
IPython binhex js sched
__
future
__
bisect json scipy
_
abc bleach keyword secrets
_
ast bs4 kiwisolver select
_
bisect builtins linecache selectors
_
blake2 bz2 locale setuptools
_
bootlocale cProfile logging shelve
_
bz2 calendar lzma shlex
_
codecs cgi macpath shutil
_
codecs
_
cn cgitb mailbox signal
_
codecs
_
hk chunk mailcap site
_
codecs
_
iso2022 cmath markupsafe sitecustomize
_
codecs
_
jp cmd marshal six
_
codecs
_
kr code math sklearn
_
codecs
_
tw codecs matplotlib smtpd
_
collections codeop micropip smtplib
_
collections
_
abc collections mimetypes sndhdr
_
compat
_
pickle colorsys mmap socket
_
compression compileall mne socketserver
_
contextvars concurrent modulefinder soupsieve
_
crypt configparser more
_
itertools sqlite3
_
csv contextlib mpl
_
toolkits sre
_
compile
_
datetime contextvars mpmath sre
_
constants
_
decimal copy netrc sre
_
parse
_
dummy
_
thread copyreg networkx ssl
_
functools crypt nltk stat
_
heapq csv nntplib statistics
_
imp cycler nose statsmodels
_
io cytoolz ntpath string
_
json dataclasses nturl2path stringprep
_
locale datetime numbers struct
_
lsprof dateutil numpy subprocess
_
markupbase decimal opcode sunau
_
md5 decorator operator symbol
_
multibytecodec difflib optparse sympy
_
operator dis os symtable
_
pickle distlib p5 sys
_
posixsubprocess distutils pandas sysconfig
_
py
_
abc doctest parser tabnanny
_
pydecimal docutils parso tarfile
_
pyio dummy
_
threading pathlib telnetlib
_
queue easy
_
install patsy tempfile
_
random email pdb textwrap
_
sha1 encodings pickle this
_
sha256 enum pickletools threading
_
sha3 errno pipes time
_
sha512 faulthandler pkg
_
resources timeit
_
signal filecmp pkgutil token
_
sitebuiltins fileinput platform tokenize
_
socket fnmatch plistlib toolz
_
sqlite3 folium pluggy trace
_
sre formatter poplib traceback
_
stat fractions posix tracemalloc
_
string ftplib posixpath tty
_
strptime functools pprint turtle
_
struct future profile types
_
symtable gc proj4py typing
_
sysconfigdata
__
emscripten
_
genericpath pstats uncertainties
_
testcapi getopt pty unicodedata
_
thread getpass pwd unittest
_
threading
_
local gettext py urllib
_
tracemalloc glob py
_
compile uu
_
warnings graphviz pyclbr uuid
_
weakref gzip pydoc warnings
_
weakrefset hashlib pydoc
_
data wave
abc heapq pyexpat weakref
aifc hmac pygments webbrowser
antigravity html pyodide webencodings
argparse html5lib pyparsing wsgiref
array http pystone xdrlib
ast imaplib pytest xlrd
asynchat imghdr pytz xml
asyncio imp queue xmlrpc
asyncore importlib quopri xxsubtype
atexit inspect random zipapp
atomicwrites io re zipfile
attr ipaddress regex zipimport
autograd itertools reprlib zlib
base64 jedi requests
bdb jinja2 rlcompleter
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
\end{pythoncmdcode}
\inputminted
{
pycon
}{
medias/files/modules.txt
}
\end{scriptsize}
%
\end{document}
...
...
doc/medias/files/modules.txt
0 → 120000
View file @
2de167d8
../../../tests/modules.txt
\ No newline at end of file
doc/medias/screenshots/gallery/moon.png
0 → 120000
View file @
2de167d8
../../../../www/theme/static/assets/img/galerie/moon.png
\ No newline at end of file
doc/medias/screenshots/gallery/traitement-image.png
deleted
120000 → 0
View file @
927d10c5
../../../../www/theme/static/assets/img/galerie/traitement-image.png
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment