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
1ad32506
Commit
1ad32506
authored
Jul 25, 2018
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
85c5649c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
46 deletions
+46
-46
jupyter.html
module2/ressources/jupyter.html
+45
-45
jupyter.org
module2/ressources/jupyter.org
+1
-1
No files found.
module2/ressources/jupyter.html
View file @
1ad32506
...
...
@@ -4,34 +4,34 @@
<h2>
Table of Contents
</h2>
<div
id=
"text-table-of-contents"
>
<ul
style=
"margin:0 0;"
>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
f3b7782
"
>
Additional Jupyter resources or tricks
</a>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
acd419d
"
>
Additional Jupyter resources or tricks
</a>
<ul
style=
"margin:0 0;"
>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
fb5fa97
"
>
Tips and tricks
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
38d49d6
"
>
Running R and Python in the same notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
1344be3
"
>
Exporting a notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
c5dc2d3
"
>
Tips and tricks
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
9541939
"
>
Running R and Python in the same notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
4455d02
"
>
Exporting a notebook
</a></li>
</ul>
</li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
98dba69
"
>
Installing Jupyter on your own machine
</a>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
a99785c
"
>
Installing Jupyter on your own machine
</a>
<ul
style=
"margin:0 0;"
>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
ded5168
"
>
Installing jupyter
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
a71105f
"
>
Using R
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
2babeac
"
>
Exporting your notebooks with latex
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
5699094"
>
Interacting with gitl
ab
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
20763cb
"
>
Interesting extensions to improve notebook readability
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
1bef8c0
"
>
Installing jupyter
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
d85230e
"
>
Using R
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
e05b608
"
>
Exporting your notebooks with latex
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
d9d1407"
>
Interacting with GitL
ab
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
cdb47ae
"
>
Interesting extensions to improve notebook readability
</a></li>
</ul>
</li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
1e7464c
"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
70343f1
"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></a></li>
</ul>
</div>
</div>
<div
id=
"outline-container-org
f3b7782
"
class=
"outline-2"
>
<h2
id=
"org
f3b7782
"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-org
f3b7782
"
>
<div
id=
"outline-container-org
acd419d
"
class=
"outline-2"
>
<h2
id=
"org
acd419d
"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-org
acd419d
"
>
</div>
<div
id=
"outline-container-org
fb5fa97
"
class=
"outline-3"
>
<h3
id=
"org
fb5fa97
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
fb5fa97
"
>
<div
id=
"outline-container-org
c5dc2d3
"
class=
"outline-3"
>
<h3
id=
"org
c5dc2d3
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
c5dc2d3
"
>
<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
...
...
@@ -41,9 +41,9 @@ now).
</p>
</div>
</div>
<div
id=
"outline-container-org
38d49d6
"
class=
"outline-3"
>
<h3
id=
"org
38d49d6
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
38d49d6
"
>
<div
id=
"outline-container-org
9541939
"
class=
"outline-3"
>
<h3
id=
"org
9541939
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
9541939
"
>
<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>
. E.g.,
...
...
@@ -91,9 +91,9 @@ plot(df)
</ol>
</div>
</div>
<div
id=
"outline-container-org
1344be3
"
class=
"outline-3"
>
<h3
id=
"org
1344be3
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
1344be3
"
>
<div
id=
"outline-container-org
4455d02
"
class=
"outline-3"
>
<h3
id=
"org
4455d02
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
4455d02
"
>
<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
...
...
@@ -120,13 +120,13 @@ taste.
</div>
</div>
</div>
<div
id=
"outline-container-org
98dba69
"
class=
"outline-2"
>
<h2
id=
"org
98dba69
"
>
Installing Jupyter on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
98dba69
"
>
<div
id=
"outline-container-org
a99785c
"
class=
"outline-2"
>
<h2
id=
"org
a99785c
"
>
Installing Jupyter on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
a99785c
"
>
</div>
<div
id=
"outline-container-org
ded5168
"
class=
"outline-3"
>
<h3
id=
"org
ded5168
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org
ded5168
"
>
<div
id=
"outline-container-org
1bef8c0
"
class=
"outline-3"
>
<h3
id=
"org
1bef8c0
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org
1bef8c0
"
>
<p>
Here is what you should install:
</p>
...
...
@@ -157,15 +157,15 @@ The ipython notebook can then be run with the following command:
</div>
</div>
</div>
<div
id=
"outline-container-org
a71105f
"
class=
"outline-3"
>
<h3
id=
"org
a71105f
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
a71105f
"
>
<div
id=
"outline-container-org
d85230e
"
class=
"outline-3"
>
<h3
id=
"org
d85230e
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
d85230e
"
>
<p>
If you want to use 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=
"#org
38d49d6
"
>
Running R and Python in
Alternatively, you can install
<code>
rpy2
</code>
(see the
<a
href=
"#org
9541939
"
>
Running R and Python in
the same notebook
</a>
section).
</p>
<div
class=
"org-src-container"
>
...
...
@@ -174,9 +174,9 @@ the same notebook</a> section).
</div>
</div>
</div>
<div
id=
"outline-container-org
2babeac
"
class=
"outline-3"
>
<h3
id=
"org
2babeac
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
2babeac
"
>
<div
id=
"outline-container-org
e05b608
"
class=
"outline-3"
>
<h3
id=
"org
e05b608
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
e05b608
"
>
<p>
Here is what I had to install on my recent debian machine to make sure
the notebook export via latex works:
...
...
@@ -188,9 +188,9 @@ sudo apt-get install texlive-xetex
</div>
</div>
</div>
<div
id=
"outline-container-org
5699094
"
class=
"outline-3"
>
<h3
id=
"org
5699094"
>
Interacting with gitl
ab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
5699094
"
>
<div
id=
"outline-container-org
d9d1407
"
class=
"outline-3"
>
<h3
id=
"org
d9d1407"
>
Interacting with GitL
ab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
d9d1407
"
>
<p>
Here is our
<a
href=
"https://github.com/brospars/nb-git"
>
jupyter extension that allows to git push/pull from the
notebooks
</a>
:
...
...
@@ -202,9 +202,9 @@ jupyter nbextension enable nb-git
</div>
</div>
</div>
<div
id=
"outline-container-org
20763cb
"
class=
"outline-3"
>
<h3
id=
"org
20763cb
"
>
Interesting extensions to improve notebook readability
</h3>
<div
class=
"outline-text-3"
id=
"text-org
20763cb
"
>
<div
id=
"outline-container-org
cdb47ae
"
class=
"outline-3"
>
<h3
id=
"org
cdb47ae
"
>
Interesting extensions to improve notebook readability
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cdb47ae
"
>
<p>
Here are two interesting extensions that can improve readability:
</p>
...
...
@@ -231,9 +231,9 @@ jupyter-serverextension enable --py hide_code
</div>
</div>
</div>
<div
id=
"outline-container-org
1e7464c
"
class=
"outline-2"
>
<h2
id=
"org
1e7464c
"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></h2>
<div
class=
"outline-text-2"
id=
"text-org
1e7464c
"
>
<div
id=
"outline-container-org
70343f1
"
class=
"outline-2"
>
<h2
id=
"org
70343f1
"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></h2>
<div
class=
"outline-text-2"
id=
"text-org
70343f1
"
>
<blockquote>
<p>
Benoit may give a few hints on this.
...
...
module2/ressources/jupyter.org
View file @
1ad32506
...
...
@@ -91,7 +91,7 @@ the notebook export via latex works:
sudo apt-get install wkhtmltopdf
sudo apt-get install texlive-xetex
#+end_src
** Interacting with
gitl
ab
** Interacting with
GitL
ab
Here is our [[https://github.com/brospars/nb-git][jupyter extension that allows to git push/pull from the
notebooks]]:
#+begin_src shell :results output :exports both
...
...
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