Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
32c0f278
Commit
32c0f278
authored
Jul 19, 2018
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regeneration
parent
31fe13dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
52 deletions
+56
-52
jupyter.html
module2/ressources/jupyter.html
+54
-51
jupyter.org
module2/ressources/jupyter.org
+2
-1
No files found.
module2/ressources/jupyter.html
View file @
32c0f278
...
...
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head>
<!-- 2018-07-19 jeu. 1
4:26
-->
<!-- 2018-07-19 jeu. 1
5:45
-->
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<title>
Rstudio
</title>
...
...
@@ -234,31 +234,31 @@ for the JavaScript code in this tag.
<h2>
Table of Contents
</h2>
<div
id=
"text-table-of-contents"
>
<ul>
<li><a
href=
"#org
320e086
"
>
Interacting with gitlab
</a></li>
<li><a
href=
"#org
5fa8060
"
>
Additional Jupyter resources or tricks
</a>
<li><a
href=
"#org
97858c5
"
>
Interacting with gitlab
</a></li>
<li><a
href=
"#org
b41aa11
"
>
Additional Jupyter resources or tricks
</a>
<ul>
<li><a
href=
"#org
602d8a4
"
>
Tips and tricks
</a></li>
<li><a
href=
"#orgf
07bc97
"
>
Running R and Python in the same notebook
</a></li>
<li><a
href=
"#org
6fe9a0a
"
>
Exporting a notebook
</a></li>
<li><a
href=
"#org
2ca79c6
"
>
Tips and tricks
</a></li>
<li><a
href=
"#orgf
423e42
"
>
Running R and Python in the same notebook
</a></li>
<li><a
href=
"#org
7654980
"
>
Exporting a notebook
</a></li>
</ul>
</li>
<li><a
href=
"#org
27a7607
"
>
Installing jupyter or jupyter hub on your own machine
</a>
<li><a
href=
"#org
777e50c
"
>
Installing jupyter or jupyter hub on your own machine
</a>
<ul>
<li><a
href=
"#org3
da1dd0
"
>
Installing jupyter
</a></li>
<li><a
href=
"#org
e6d06de
"
>
Using R
</a></li>
<li><a
href=
"#org
5d221f3
"
>
Exporting your notebooks with latex
</a></li>
<li><a
href=
"#org
cd67c04
"
>
Interacting with gitlab
</a></li>
<li><a
href=
"#org
d5ecec1"
>
Interesting extensions
</a></li>
<li><a
href=
"#org
44b207c
"
>
Installing jupyterhub
</a></li>
<li><a
href=
"#org3
a2fabc
"
>
Installing jupyter
</a></li>
<li><a
href=
"#org
cae22b4
"
>
Using R
</a></li>
<li><a
href=
"#org
cd4e4e0
"
>
Exporting your notebooks with latex
</a></li>
<li><a
href=
"#org
9e7be3a
"
>
Interacting with gitlab
</a></li>
<li><a
href=
"#org
932058f"
>
Interesting extensions to improve notebook readability
</a></li>
<li><a
href=
"#org
cdd7391
"
>
Installing jupyterhub
</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div
id=
"outline-container-org
320e086
"
class=
"outline-2"
>
<h2
id=
"org
320e086
"
>
Interacting with gitlab
</h2>
<div
class=
"outline-text-2"
id=
"text-org
320e086
"
>
<div
id=
"outline-container-org
97858c5
"
class=
"outline-2"
>
<h2
id=
"org
97858c5
"
>
Interacting with gitlab
</h2>
<div
class=
"outline-text-2"
id=
"text-org
97858c5
"
>
<blockquote>
<p>
This section needs some love.
...
...
@@ -275,13 +275,13 @@ and to share your notebook with others.
</p>
</div>
</div>
<div
id=
"outline-container-org
5fa8060
"
class=
"outline-2"
>
<h2
id=
"org
5fa8060
"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-org
5fa8060
"
>
<div
id=
"outline-container-org
b41aa11
"
class=
"outline-2"
>
<h2
id=
"org
b41aa11
"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-org
b41aa11
"
>
</div>
<div
id=
"outline-container-org
602d8a4
"
class=
"outline-3"
>
<h3
id=
"org
602d8a4
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
602d8a4
"
>
<div
id=
"outline-container-org
2ca79c6
"
class=
"outline-3"
>
<h3
id=
"org
2ca79c6
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
2ca79c6
"
>
<p>
The following
<a
href=
"https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/"
>
webpage
</a>
lists several Jupyter tricks (in particular, it
illustrates many
<code>
Ipython magic
</code>
commands) that should improve your
...
...
@@ -291,9 +291,9 @@ now).
</p>
</div>
</div>
<div
id=
"outline-container-orgf
07bc97
"
class=
"outline-3"
>
<h3
id=
"orgf
07bc97
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-orgf
07bc97
"
>
<div
id=
"outline-container-orgf
423e42
"
class=
"outline-3"
>
<h3
id=
"orgf
423e42
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-orgf
423e42
"
>
<p>
The best solution to this is to install rpy2. On my machine, I have
installed the
<code>
python3-rpy2
</code>
debian package with
<code>
apt-get install
</code>
. An
...
...
@@ -335,9 +335,9 @@ plot((df)
</ol>
</div>
</div>
<div
id=
"outline-container-org
6fe9a0a
"
class=
"outline-3"
>
<h3
id=
"org
6fe9a0a
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
6fe9a0a
"
>
<div
id=
"outline-container-org
7654980
"
class=
"outline-3"
>
<h3
id=
"org
7654980
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
7654980
"
>
<p>
Obviously, you can convert to html or pdf using the using the
<code>
File
>
Download as
>
HTML
</code>
(or
<code>
PDF
</code>
) menu option. This can also be done from
...
...
@@ -364,13 +364,13 @@ taste.
</div>
</div>
</div>
<div
id=
"outline-container-org
27a7607
"
class=
"outline-2"
>
<h2
id=
"org
27a7607
"
>
Installing jupyter or jupyter hub on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
27a7607
"
>
<div
id=
"outline-container-org
777e50c
"
class=
"outline-2"
>
<h2
id=
"org
777e50c
"
>
Installing jupyter or jupyter hub on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
777e50c
"
>
</div>
<div
id=
"outline-container-org3
da1dd0
"
class=
"outline-3"
>
<h3
id=
"org3
da1dd0
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org3
da1dd0
"
>
<div
id=
"outline-container-org3
a2fabc
"
class=
"outline-3"
>
<h3
id=
"org3
a2fabc
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org3
a2fabc
"
>
<p>
Here is what you should install:
</p>
...
...
@@ -401,16 +401,16 @@ The ipython notebook can then be run with the following command:
</div>
</div>
</div>
<div
id=
"outline-container-org
e6d06de
"
class=
"outline-3"
>
<h3
id=
"org
e6d06de
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
e6d06de
"
>
<div
id=
"outline-container-org
cae22b4
"
class=
"outline-3"
>
<h3
id=
"org
cae22b4
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cae22b4
"
>
<p>
If you also want to have the R kernel in jupyter, follow
<a
href=
"https://github.com/IRkernel/IRkernel#installation"
>
these
instructions
</a>
.
</p>
<p>
Alternatively, you can install
<code>
rpy2
</code>
(see the
<a
href=
"#orgf
07bc97
"
>
Running R and Python in
Alternatively, you can install
<code>
rpy2
</code>
(see the
<a
href=
"#orgf
423e42
"
>
Running R and Python in
the same notebook
</a>
section).
</p>
<div
class=
"org-src-container"
>
...
...
@@ -419,9 +419,9 @@ the same notebook</a> section).
</div>
</div>
</div>
<div
id=
"outline-container-org
5d221f3
"
class=
"outline-3"
>
<h3
id=
"org
5d221f3
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
5d221f3
"
>
<div
id=
"outline-container-org
cd4e4e0
"
class=
"outline-3"
>
<h3
id=
"org
cd4e4e0
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cd4e4e0
"
>
<p>
Here is what I had to install to make sure the notebook export via
latex works:
...
...
@@ -433,9 +433,9 @@ sudo apt-get install texlive-xetex
</div>
</div>
</div>
<div
id=
"outline-container-org
cd67c04
"
class=
"outline-3"
>
<h3
id=
"org
cd67c04
"
>
Interacting with gitlab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cd67c04
"
>
<div
id=
"outline-container-org
9e7be3a
"
class=
"outline-3"
>
<h3
id=
"org
9e7be3a
"
>
Interacting with gitlab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
9e7be3a
"
>
<p>
Here is our
<a
href=
"https://github.com/brospars/nb-git"
>
jupyter extension that allows to git push/pull from the
notebooks
</a>
:
...
...
@@ -447,9 +447,12 @@ jupyter nbextension enable nb-git
</div>
</div>
</div>
<div
id=
"outline-container-orgd5ecec1"
class=
"outline-3"
>
<h3
id=
"orgd5ecec1"
>
Interesting extensions
</h3>
<div
class=
"outline-text-3"
id=
"text-orgd5ecec1"
>
<div
id=
"outline-container-org932058f"
class=
"outline-3"
>
<h3
id=
"org932058f"
>
Interesting extensions to improve notebook readability
</h3>
<div
class=
"outline-text-3"
id=
"text-org932058f"
>
<p>
Here are two interesting extensions that can improve readability:
</p>
<ul
class=
"org-ul"
>
<li><p>
<a
href=
"https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook"
>
Code folding
</a>
...
...
@@ -472,9 +475,9 @@ jupyter-serverextension enable --py hide_code
</ul>
</div>
</div>
<div
id=
"outline-container-org
44b207c
"
class=
"outline-3"
>
<h3
id=
"org
44b207c
"
>
Installing jupyterhub
</h3>
<div
class=
"outline-text-3"
id=
"text-org
44b207c
"
>
<div
id=
"outline-container-org
cdd7391
"
class=
"outline-3"
>
<h3
id=
"org
cdd7391
"
>
Installing jupyterhub
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cdd7391
"
>
<blockquote>
<p>
Benoit may give a few hints on this.
...
...
@@ -487,7 +490,7 @@ Benoit may give a few hints on this.
<div
id=
"postamble"
class=
"status"
>
<p
class=
"date"
>
Date: June, 2018
</p>
<p
class=
"author"
>
Author: Arnaud Legrand
</p>
<p
class=
"date"
>
Created: 2018-07-19 jeu. 1
4:26
</p>
<p
class=
"date"
>
Created: 2018-07-19 jeu. 1
5:45
</p>
<p
class=
"validation"
><a
href=
"http://validator.w3.org/check?uri=referer"
>
Validate
</a></p>
</div>
</body>
...
...
module2/ressources/jupyter.org
View file @
32c0f278
...
...
@@ -106,7 +106,8 @@ notebooks]]:
jupyter nbextension install https://raw.githubusercontent.com/brospars/nb-git/master/nb-git.js
jupyter nbextension enable nb-git
#+end_src
** Interesting extensions
** Interesting extensions to improve notebook readability
Here are two interesting extensions that can improve readability:
- [[https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook][Code folding]]
#+begin_src shell :results output :exports both
pip3 install jupyter_contrib_nbextensions
...
...
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