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
388ab714
Commit
388ab714
authored
Jul 19, 2018
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Benoit will take care of this (or not)
parent
91dec995
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
79 deletions
+49
-79
jupyter.html
module2/ressources/jupyter.html
+46
-66
jupyter.org
module2/ressources/jupyter.org
+3
-13
No files found.
module2/ressources/jupyter.html
View file @
388ab714
...
...
@@ -4,54 +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=
"#orgaa631f0"
>
Interacting with gitlab
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#orgc0bede2"
>
Additional Jupyter resources or tricks
</a>
<li
style=
"margin-bottom:0;"
><a
href=
"#org975cdde"
>
Additional Jupyter resources or tricks
</a>
<ul
style=
"margin:0 0;"
>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
a0a8c0a
"
>
Tips and tricks
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
cc5df2c
"
>
Running R and Python in the same notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
50f9d65
"
>
Exporting a notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
27d1582
"
>
Tips and tricks
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
4f5f0e8
"
>
Running R and Python in the same notebook
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
6e2f783
"
>
Exporting a notebook
</a></li>
</ul>
</li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
9ad15fe"
>
Installing jupyter or jupyter hub
on your own machine
</a>
<li
style=
"margin-bottom:0;"
><a
href=
"#org
75409e5"
>
Installing Jupyter
on your own machine
</a>
<ul
style=
"margin:0 0;"
>
<li
style=
"margin-bottom:0;"
><a
href=
"#org3c82116"
>
Installing jupyter
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org41613aa"
>
Using R
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#orgeebc12b"
>
Exporting your notebooks with latex
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#orgf4f33c6"
>
Interacting with gitlab
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#orgd30b2c8"
>
Interesting extensions to improve notebook readability
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org883d82c"
>
Installing jupyterhub
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org73474e0"
>
Installing jupyter
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org5dcb2d4"
>
Using R
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org919a045"
>
Exporting your notebooks with latex
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org3bdebfb"
>
Interacting with gitlab
</a></li>
<li
style=
"margin-bottom:0;"
><a
href=
"#orgee218a0"
>
Interesting extensions to improve notebook readability
</a></li>
</ul>
</li>
<li
style=
"margin-bottom:0;"
><a
href=
"#org4ee7491"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></a></li>
</ul>
</div>
</div>
<div
id=
"outline-container-orgaa631f0"
class=
"outline-2"
>
<h2
id=
"orgaa631f0"
>
Interacting with gitlab
</h2>
<div
class=
"outline-text-2"
id=
"text-orgaa631f0"
>
<blockquote>
<p>
This section needs some love.
</p>
</blockquote>
<p>
As you may have seen from the videos, we provide two buttons to sync
with gitlab. Indeed, even if you recover your files when you log back
into fun, the jupyter runs on a different machine than the gitlab
server and you need to commit your notebook every time you have made a
significant step. This is also the only way to really make it public
and to share your notebook with others.
</p>
</div>
</div>
<div
id=
"outline-container-orgc0bede2"
class=
"outline-2"
>
<h2
id=
"orgc0bede2"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-orgc0bede2"
>
<div
id=
"outline-container-org975cdde"
class=
"outline-2"
>
<h2
id=
"org975cdde"
>
Additional Jupyter resources or tricks
</h2>
<div
class=
"outline-text-2"
id=
"text-org975cdde"
>
</div>
<div
id=
"outline-container-org
a0a8c0a
"
class=
"outline-3"
>
<h3
id=
"org
a0a8c0a
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
a0a8c0a
"
>
<div
id=
"outline-container-org
27d1582
"
class=
"outline-3"
>
<h3
id=
"org
27d1582
"
>
Tips and tricks
</h3>
<div
class=
"outline-text-3"
id=
"text-org
27d1582
"
>
<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
...
...
@@ -61,9 +41,9 @@ now).
</p>
</div>
</div>
<div
id=
"outline-container-org
cc5df2c
"
class=
"outline-3"
>
<h3
id=
"org
cc5df2c
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
cc5df2c
"
>
<div
id=
"outline-container-org
4f5f0e8
"
class=
"outline-3"
>
<h3
id=
"org
4f5f0e8
"
>
Running R and Python in the same notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
4f5f0e8
"
>
<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
...
...
@@ -105,9 +85,9 @@ plot((df)
</ol>
</div>
</div>
<div
id=
"outline-container-org
50f9d65
"
class=
"outline-3"
>
<h3
id=
"org
50f9d65
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
50f9d65
"
>
<div
id=
"outline-container-org
6e2f783
"
class=
"outline-3"
>
<h3
id=
"org
6e2f783
"
>
Exporting a notebook
</h3>
<div
class=
"outline-text-3"
id=
"text-org
6e2f783
"
>
<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
...
...
@@ -134,13 +114,13 @@ taste.
</div>
</div>
</div>
<div
id=
"outline-container-org
9ad15fe
"
class=
"outline-2"
>
<h2
id=
"org
9ad15fe"
>
Installing jupyter or jupyter hub
on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
9ad15fe
"
>
<div
id=
"outline-container-org
75409e5
"
class=
"outline-2"
>
<h2
id=
"org
75409e5"
>
Installing Jupyter
on your own machine
</h2>
<div
class=
"outline-text-2"
id=
"text-org
75409e5
"
>
</div>
<div
id=
"outline-container-org
3c82116
"
class=
"outline-3"
>
<h3
id=
"org
3c82116
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org
3c82116
"
>
<div
id=
"outline-container-org
73474e0
"
class=
"outline-3"
>
<h3
id=
"org
73474e0
"
>
Installing jupyter
</h3>
<div
class=
"outline-text-3"
id=
"text-org
73474e0
"
>
<p>
Here is what you should install:
</p>
...
...
@@ -171,16 +151,16 @@ The ipython notebook can then be run with the following command:
</div>
</div>
</div>
<div
id=
"outline-container-org
41613aa
"
class=
"outline-3"
>
<h3
id=
"org
41613aa
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
41613aa
"
>
<div
id=
"outline-container-org
5dcb2d4
"
class=
"outline-3"
>
<h3
id=
"org
5dcb2d4
"
>
Using R
</h3>
<div
class=
"outline-text-3"
id=
"text-org
5dcb2d4
"
>
<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=
"#org
cc5df2c
"
>
Running R and Python in
Alternatively, you can install
<code>
rpy2
</code>
(see the
<a
href=
"#org
4f5f0e8
"
>
Running R and Python in
the same notebook
</a>
section).
</p>
<div
class=
"org-src-container"
>
...
...
@@ -189,9 +169,9 @@ the same notebook</a> section).
</div>
</div>
</div>
<div
id=
"outline-container-org
eebc12b
"
class=
"outline-3"
>
<h3
id=
"org
eebc12b
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
eebc12b
"
>
<div
id=
"outline-container-org
919a045
"
class=
"outline-3"
>
<h3
id=
"org
919a045
"
>
Exporting your notebooks with latex
</h3>
<div
class=
"outline-text-3"
id=
"text-org
919a045
"
>
<p>
Here is what I had to install to make sure the notebook export via
latex works:
...
...
@@ -203,9 +183,9 @@ sudo apt-get install texlive-xetex
</div>
</div>
</div>
<div
id=
"outline-container-org
f4f33c6
"
class=
"outline-3"
>
<h3
id=
"org
f4f33c6
"
>
Interacting with gitlab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
f4f33c6
"
>
<div
id=
"outline-container-org
3bdebfb
"
class=
"outline-3"
>
<h3
id=
"org
3bdebfb
"
>
Interacting with gitlab
</h3>
<div
class=
"outline-text-3"
id=
"text-org
3bdebfb
"
>
<p>
Here is our
<a
href=
"https://github.com/brospars/nb-git"
>
jupyter extension that allows to git push/pull from the
notebooks
</a>
:
...
...
@@ -217,9 +197,9 @@ jupyter nbextension enable nb-git
</div>
</div>
</div>
<div
id=
"outline-container-org
d30b2c8
"
class=
"outline-3"
>
<h3
id=
"org
d30b2c8
"
>
Interesting extensions to improve notebook readability
</h3>
<div
class=
"outline-text-3"
id=
"text-org
d30b2c8
"
>
<div
id=
"outline-container-org
ee218a0
"
class=
"outline-3"
>
<h3
id=
"org
ee218a0
"
>
Interesting extensions to improve notebook readability
</h3>
<div
class=
"outline-text-3"
id=
"text-org
ee218a0
"
>
<p>
Here are two interesting extensions that can improve readability:
</p>
...
...
@@ -245,9 +225,10 @@ jupyter-serverextension enable --py hide_code
</ul>
</div>
</div>
<div
id=
"outline-container-org883d82c"
class=
"outline-3"
>
<h3
id=
"org883d82c"
>
Installing jupyterhub
</h3>
<div
class=
"outline-text-3"
id=
"text-org883d82c"
>
</div>
<div
id=
"outline-container-org4ee7491"
class=
"outline-2"
>
<h2
id=
"org4ee7491"
>
Installing JupyterHub
   
<span
class=
"tag"
><span
class=
"Benoit"
>
Benoit
</span></span></h2>
<div
class=
"outline-text-2"
id=
"text-org4ee7491"
>
<blockquote>
<p>
Benoit may give a few hints on this.
...
...
@@ -256,4 +237,3 @@ Benoit may give a few hints on this.
</div>
</div>
</div>
</div>
module2/ressources/jupyter.org
View file @
388ab714
...
...
@@ -4,18 +4,8 @@
#+DATE: June, 2018
#+STARTUP: overview indent
#+OPTIONS: num:nil toc:t
#+PROPERTY: header-args :eval never-export
* Interacting with gitlab
#+BEGIN_QUOTE
This section needs some love.
#+END_QUOTE
As you may have seen from the videos, we provide two buttons to sync
with gitlab. Indeed, even if you recover your files when you log back
into fun, the jupyter runs on a different machine than the gitlab
server and you need to commit your notebook every time you have made a
significant step. This is also the only way to really make it public
and to share your notebook with others.
* Additional Jupyter resources or tricks
** Tips and tricks
The following [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][webpage]] lists several Jupyter tricks (in particular, it
...
...
@@ -64,7 +54,7 @@ Instead of going directly through LaTeX and playing too much with the
nbconvert exporter, an other option consists in exporting to Markdown
and playing with [[https://pandoc.org/][pandoc]]. Both approaches work, it's rather a matter of
taste.
* Installing
jupyter or jupyter hub
on your own machine
* Installing
Jupyter
on your own machine
** Installing jupyter
Here is what you should install:
#+begin_src shell :results output :exports both
...
...
@@ -120,7 +110,7 @@ Here are two interesting extensions that can improve readability:
jupyter-nbextension enable --py hide_code
jupyter-serverextension enable --py hide_code
#+end_src
*
* Installing jupyterhub
*
Installing JupyterHub :Benoit:
#+BEGIN_QUOTE
Benoit may give a few hints on this.
#+END_QUOTE
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