From dc277b739e19101fb1143a9d02f5ee6f2c169625 Mon Sep 17 00:00:00 2001 From: Marie-Gabrielle Dondon <85bc36e0a8096c618fbd5993d1cca191@app-learninglab.inria.fr> Date: Thu, 20 Sep 2018 05:36:05 +0000 Subject: [PATCH] =?UTF-8?q?Compl=C3=A9ments=20Windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/ressources/jupyter.org | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/module2/ressources/jupyter.org b/module2/ressources/jupyter.org index d2ffb23..d164c54 100644 --- a/module2/ressources/jupyter.org +++ b/module2/ressources/jupyter.org @@ -43,6 +43,20 @@ Then you'll be able to use both languages in the same notebook by: Note that this =%%R= notation allows you to use R for the whole cell but an other possibility is to use =%R= to have a single line of R within a python cell. + +*** Windows +Download =rpy2= [[https://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2][binary file]] by choosing the right operating system. + +Open a DOS console and type the following command: +#+begin_src shell :results output :exports both +python -m pip install rpy2‑2.9.4‑cp37‑cp37m‑win_amd64.whl # adapt filename +#+end_src + +Install also =tzlocal=: +#+begin_src shell :results output :exports both +python -m pip install tzlocal +#+end_src + ** Exporting a notebook Obviously, you can convert to html or pdf using the using the =File > Download as > HTML= (or =PDF=) menu option. This can also be done from the command line with the following command: @@ -81,7 +95,7 @@ source activate mooc_rr jupyter notebook #+end_src -** Side note about Jupyter, JupyterLab, JupyterHub, ... +** Side note about Jupyter, JupyterLab, JupyterHub... Note that Jupyter notebooks are only a small part of the picture and that Jupyter is now part of a bigger project: [[https://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f039b8906][JupyterLab]], which allows you to mix various components (including notebooks) in your @@ -96,6 +110,11 @@ the notebook export via latex works: sudo apt-get install texlive-xetex wkhtmltopdf #+end_src +*** Windows +Download and install MiKTeX from the [[https://miktex.org/download][MiKTeX webpage]] +by choosing the right operating system. You will be prompted to install some specific +packages when exporting to pdf. + ** Jupyter extensions/plugins *** Improving notebook readability Here are a few extensions that can ease your life: -- 2.18.1