This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
world:raccourcis [2024/02/04 10:32] rdouc |
world:raccourcis [2024/02/25 21:36] rdouc [Python] |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Brave ====== | ====== Brave ====== | ||
* Ctrl shift O: liste des favoris... | * Ctrl shift O: liste des favoris... | ||
+ | |||
+ | ====== TIG ====== | ||
+ | * tig puis s pour voir le statut puis ! devant le fichier changé pour retrouver l'ancienne version | ||
+ | |||
====== Python ====== | ====== Python ====== | ||
* Pour séparer les cellules, insérer <code> #%% </code> | * Pour séparer les cellules, insérer <code> #%% </code> | ||
* a.shape: pour avoir la dimension du tableau **a** | * a.shape: pour avoir la dimension du tableau **a** | ||
+ | * plt.clf(): effacer figure | ||
+ | * plt.savefig(): sauver une figure | ||
+ | * plt.close(): fermer une figure. | ||
===== Python et Emacs ===== | ===== Python et Emacs ===== | ||
Line 18: | Line 25: | ||
===== Jupyter et Emacs ===== | ===== Jupyter et Emacs ===== | ||
+ | * M-x indent-rigidly: puis fleche a gauche ou droite. | ||
* Execute Cell: C-c C-c | * Execute Cell: C-c C-c | ||
* Execute Cell & Go to Next: M-RET | * Execute Cell & Go to Next: M-RET | ||
* New Cell Above: C-c C-a | * New Cell Above: C-c C-a | ||
* New Cell Below: C-c C-b | * New Cell Below: C-c C-b | ||
+ | * Merge Cell: C-c Enter | ||
+ | * Split Cell: C-c C-s | ||
* Kill Cell: C-c C-k | * Kill Cell: C-c C-k | ||
- | * Toggle Cell Type: C-c C-u | + | * Toggle Cell Type: C-c C-t |
+ | * Change Cell Type: C-c C-u | ||
* Save Workbook: C-x C-s | * Save Workbook: C-x C-s | ||
* Discard Cell Output: C-c C-l | * Discard Cell Output: C-c C-l | ||
+ | * Start Jupyter Server: M-x ein:jupyter-server-start | ||
* Stop Jupyter Server: M-x ein:jupyter-server-stop | * Stop Jupyter Server: M-x ein:jupyter-server-stop | ||
+ | * [[https://millejoh.github.io/emacs-ipython-notebook/| documentation sur le package EIN ]] | ||
====== Latex ====== | ====== Latex ====== |