Unverified Commit 9ff17681 authored by Andrea Del Prete's avatar Andrea Del Prete Committed by GitHub
Browse files

Merge pull request #43 from NoelieRamuzat/devel

[Notebooks] Fix the waist task - Working examples
parents bd418635 012fa665
...@@ -13164,7 +13164,7 @@ python virtualenv.py myVE</code></pre> ...@@ -13164,7 +13164,7 @@ python virtualenv.py myVE</code></pre>
</div><div class="inner_cell"> </div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html"> <div class="text_cell_render border-box-sizing rendered_html">
<p>3) Source your terminal with the use of this <a href="http://robotpkg.openrobots.org/install.html">script</a> to setup your environment variables to find <em>openrobots</em> installation</p> <p>3) Source your terminal with the use of this <a href="http://robotpkg.openrobots.org/install.html">script</a> to setup your environment variables to find <em>openrobots</em> installation</p>
<p>4) Make sure you have placed the plot_utils.py in the same directory than the jupyter notebooks</p> <p>4) Make sure you have placed the plot_utils.py in the parent directory of the jupyter notebooks</p>
<p>5) Start the notebook with the command:</p> <p>5) Start the notebook with the command:</p>
<p><code>jupyter notebook</code></p> <p><code>jupyter notebook</code></p>
<p>6) At the end if you have chosen to use <em>virtualenv</em> you should desactivate your environment with the command:</p> <p>6) At the end if you have chosen to use <em>virtualenv</em> you should desactivate your environment with the command:</p>
......
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
## Installation process ## Installation process
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
1) Install the robotpkg binaries which are needed for this exercice: 1) Install the robotpkg binaries which are needed for this exercice:
``` ```
sudo apt-get install robotpkg-sot-talos robotpkg-talos-dev sudo apt-get install robotpkg-sot-talos robotpkg-talos-dev
sudo apt-get install robotpkg-py27-qt4-gepetto-viewer-corba sudo apt-get install robotpkg-py27-qt4-gepetto-viewer-corba
sudo apt-get install robotpkg-omniorbpy=3.1r3 sudo apt-get install robotpkg-omniorbpy=3.1r3
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
#### Alternative to install jupyter #### Alternative to install jupyter
2) Use ```pip install jupyter``` (but be carefull it may broke your environment) 2) Use ```pip install jupyter``` (but be carefull it may broke your environment)
2) Configure a specific environment with [virtualenv](https://virtualenv.pypa.io/en/stable/): 2) Configure a specific environment with [virtualenv](https://virtualenv.pypa.io/en/stable/):
- In the directory containing the jupyter notebook download the _virtualenv_ source, extract and install it: - In the directory containing the jupyter notebook download the _virtualenv_ source, extract and install it:
``` ```
curl --location --output virtualenv-master.tar.gz https://github.com/pypa/virtualenv/tarball/master curl --location --output virtualenv-master.tar.gz https://github.com/pypa/virtualenv/tarball/master
tar xvfz virtualenv-master.tar.gz tar xvfz virtualenv-master.tar.gz
cd pypa-virtualenv-master cd pypa-virtualenv-master
python virtualenv.py myVE python virtualenv.py myVE
``` ```
- Then activate your environment: - Then activate your environment:
```source myVE/bin/activate``` ```source myVE/bin/activate```
- And install the needed python packages: - And install the needed python packages:
```pip install jupyter numpy matplotlib``` ```pip install jupyter numpy matplotlib```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
3) Source your terminal with the use of this [script](http://robotpkg.openrobots.org/install.html) to setup your environment variables to find _openrobots_ installation 3) Source your terminal with the use of this [script](http://robotpkg.openrobots.org/install.html) to setup your environment variables to find _openrobots_ installation
4) Make sure you have placed the plot_utils.py in the same directory than the jupyter notebooks 4) Make sure you have placed the plot_utils.py in the parent directory of the jupyter notebooks
5) Start the notebook with the command: 5) Start the notebook with the command:
```jupyter notebook``` ```jupyter notebook```
6) At the end if you have chosen to use _virtualenv_ you should deactivate your environment with the command: 6) At the end if you have chosen to use _virtualenv_ you should deactivate your environment with the command:
```deactivate``` ```deactivate```
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment