Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #242

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_branch: devel
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
rev: v0.9.3
hooks:
- id: ruff
args:
Expand All @@ -14,17 +14,17 @@ repos:
hooks:
- id: cmake-format
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
rev: v0.24.2
hooks:
- id: toml-sort-fix
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
rev: v19.1.7
hooks:
- id: clang-format
args:
- '--style={BasedOnStyle: Google, SortIncludes: false, WhitespaceSensitiveMacros: ["TSID_DISABLE_WARNING"]}'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-symlinks
Expand Down
179 changes: 90 additions & 89 deletions exercizes/notebooks/Installation process.ipynb
Original file line number Diff line number Diff line change
@@ -1,92 +1,93 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installation process"
]
"cells" : [
{
"cell_type" : "markdown",
"metadata" : {},
"source" : ["## Installation process"]
},
{
"cell_type" : "markdown",
"metadata" : {},
"source" : [
"1) Install the robotpkg binaries which are needed for this "
"exercice:\n",
"\n", " ```\n",
" sudo apt-get install robotpkg-sot-talos robotpkg-talos-dev \n",
" sudo apt-get install robotpkg-py27-qt4-gepetto-viewer-corba \n",
" ```"
]
},
{
"cell_type" : "markdown",
"metadata" : {},
"source" : [
"#### Alternative to install jupyter\n",
"\n",
"2) Use ```pip install jupyter``` (but be carefull it may broke your "
"environment)\n",
"\n",
"2) Configure a specific environment with "
"[virtualenv](https://virtualenv.pypa.io/en/stable/):\n",
"\n",
" - In the directory containing the jupyter notebook download the "
"_virtualenv_ source, extract and install it: \n",
" \n",
" ```\n",
" curl --location --output virtualenv-master.tar.gz "
"https://github.com/pypa/virtualenv/tarball/master \n",
" tar xvfz virtualenv-master.tar.gz \n",
" cd pypa-virtualenv-master \n",
" python virtualenv.py myVE\n",
" ```\n",
" \n",
"- Then activate your environment:\n",
" \n",
" ```source myVE/bin/activate```\n",
" \n",
" \n",
"- And install the needed python packages:\n",
" \n",
" ```pip install jupyter numpy matplotlib```\n",
" \n",
"- WARNING: for some obscure reasons, virtualenv removes "
"/usr/lib/python2.7/dist-packages from PYTHONPATH. You may need to "
"re-add it."
]
},
{
"cell_type" : "markdown",
"metadata" : {},
"source" : [
"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\n",
"\n",
"4) Make sure you have placed the plot_utils.py in the parent "
"directory of the jupyter notebooks\n",
"\n", "5) Start the notebook with the command:\n", "\n",
" ```jupyter notebook```\n", "\n",
"6) At the end if you have chosen to use _virtualenv_ you should "
"deactivate your environment with the command:\n",
"\n", " ```deactivate```"
]
}
],
"metadata" : {
"kernelspec" : {
"display_name" : "Python 2",
"language" : "python",
"name" : "python2"
},
"language_info" : {
"codemirror_mode" : {"name" : "ipython", "version" : 2},
"file_extension" : ".py",
"mimetype" : "text/x-python",
"name" : "python",
"nbconvert_exporter" : "python",
"pygments_lexer" : "ipython2",
"version" : "2.7.12"
}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1) Install the robotpkg binaries which are needed for this exercice:\n",
"\n",
" ```\n",
" sudo apt-get install robotpkg-sot-talos robotpkg-talos-dev \n",
" sudo apt-get install robotpkg-py27-qt4-gepetto-viewer-corba \n",
" ```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Alternative to install jupyter\n",
"\n",
"2) Use ```pip install jupyter``` (but be carefull it may broke your environment)\n",
"\n",
"2) Configure a specific environment with [virtualenv](https://virtualenv.pypa.io/en/stable/):\n",
"\n",
" - In the directory containing the jupyter notebook download the _virtualenv_ source, extract and install it: \n",
" \n",
" ```\n",
" curl --location --output virtualenv-master.tar.gz https://github.com/pypa/virtualenv/tarball/master \n",
" tar xvfz virtualenv-master.tar.gz \n",
" cd pypa-virtualenv-master \n",
" python virtualenv.py myVE\n",
" ```\n",
" \n",
"- Then activate your environment:\n",
" \n",
" ```source myVE/bin/activate```\n",
" \n",
" \n",
"- And install the needed python packages:\n",
" \n",
" ```pip install jupyter numpy matplotlib```\n",
" \n",
"- WARNING: for some obscure reasons, virtualenv removes /usr/lib/python2.7/dist-packages from PYTHONPATH. You may need to re-add it."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"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\n",
"\n",
"4) Make sure you have placed the plot_utils.py in the parent directory of the jupyter notebooks\n",
"\n",
"5) Start the notebook with the command:\n",
"\n",
" ```jupyter notebook```\n",
"\n",
"6) At the end if you have chosen to use _virtualenv_ you should deactivate your environment with the command:\n",
"\n",
" ```deactivate```"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat" : 4,
"nbformat_minor" : 2
}
Loading
Loading