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
1cf78280
Commit
1cf78280
authored
Aug 29, 2018
by
brospars
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update jupyter installation guide
parent
a657bf1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
30 deletions
+13
-30
jupyter.org
module2/ressources/jupyter.org
+13
-30
No files found.
module2/ressources/jupyter.org
View file @
1cf78280
...
...
@@ -59,31 +59,24 @@ and playing with [[https://pandoc.org/][pandoc]]. Both approaches work, it's rat
taste.
* Installing Jupyter on your own machine
** Installing jupyter
Here is what you should install:
#+begin_src shell :results output :exports both
sudo apt-get install jupyter-notebook python3-pip python3-matplotlib python3-numpy
#+end_src
Follow these instructions if you wish to have a similar Jupyter environment on you own machine.
First, download and install [[https://www.anaconda.com/download/][Anaconda latest version]]. We use Anaconda version =4.5.4= on our server .\\
Anaconda includes Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.
On my machine, I got the version 5.4.1
:
Then download the [[https://gist.github.com/brospars/4671d9013f0d99e1c961482dab533c57][mooc_rr environment file]] and create it using conda
:
#+begin_src shell :results output :exports both
jupyter-notebook --version
#+end_src
conda env create -f environment.yml
#
+RESULTS:
: 5.4.1
#
Windows activate the environment
activate mooc_rr
The ipython notebook can then be run with the following command:
#+begin_src shell :results output :exports both
jupyter-notebook
#+end_src
** Using R
If you want to use the R kernel in jupyter, follow [[https://github.com/IRkernel/IRkernel#installation][these instructions]].
# Linux and MacOS activate the environment
source activate mooc_rr
Alternatively, you can install =rpy2= (see the [[*Running R and Python in the same notebook][Running R and Python in
the same notebook]] section).
#+begin_src shell :results output :exports both
sudo apt-get python3-rpy2
jupyter notebook
#+end_src
** Exporting your notebooks with latex
Here is what I had to install on my recent debian machine to make sure
the notebook export via latex works:
...
...
@@ -91,13 +84,7 @@ the notebook export via latex works:
sudo apt-get install wkhtmltopdf
sudo apt-get install texlive-xetex
#+end_src
** Interacting with GitLab
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
jupyter nbextension install https://raw.githubusercontent.com/brospars/nb-git/master/nb-git.js
jupyter nbextension enable nb-git
#+end_src
** 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]]
...
...
@@ -112,7 +99,3 @@ 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 :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