diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdcad33cb409c39d933276f389ca83b7af7da491..18f5ddd6708322d24ed86a8c150200354827b2c9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,31 +7,28 @@ before_script:
 
 stages:
   - build
+  - flake8
   - test
 
 build:
   script:
   - python3 setup.py bdist_wheel
-  # an alternative approach is to install and run:
-  # - pip3 install dist/*
-  # run the command here
-  #artifacts:
-  #  paths:
-  #  - dist/*.whl
 
-test:
+flake8:
   script:
-  #- python3 setup.py test
-  - pip3 install --user tox flake8 networkx  # you can also use tox
-  #- tox -e py36,flake8
+  - pip3 install --user tox flake8
   - python3 -m flake8 navipy/*.py
+  
+test:
+  script:
+  - pip3 install --user networkx  # you can also use tox
   - python3 -m unittest discover navipy
 
 
 
 pages:
   script:
-  - pip3 install sphinx sphinx-rtd-theme
+  - pip3 install --user sphinx sphinx-rtd-theme
   - cd doc ; make html
   - mv build/html/ ../public/
   artifacts:
diff --git a/doc/source/conf.py b/doc/source/conf.py
index b11c5c5900ab6c8947da5e19b0c467635bda63bb..c09fb3aed25139354919653b50893420b1548173 100755
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -33,8 +33,6 @@ sys.path.insert(0, os.path.abspath('../../src/database/'))
 # ones.
 extensions = ['matplotlib.sphinxext.only_directives',
               'matplotlib.sphinxext.plot_directive',
-              'IPython.sphinxext.ipython_directive',
-              'IPython.sphinxext.ipython_console_highlighting',
               'sphinx.ext.autodoc',
               'sphinx.ext.doctest',
               'sphinx.ext.intersphinx',