Skip to content

Commit

Permalink
* fix mpi notebook initialisation (i hope!)
Browse files Browse the repository at this point in the history
* add environ variable to enable xvfb gluc
  • Loading branch information
jmansour committed Jun 3, 2016
1 parent de958f2 commit 68dc796
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/development/docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ RUN mkdir -p -m 700 /root/.jupyter/ && \
echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py

# Setup ipyparallel for mpi profile
WORKDIR /root/.jupyter
RUN ipcluster nbextension enable && \
ipython profile create --parallel --profile=mpi && \
echo "c.IPClusterEngines.engine_launcher_class = 'MPIEngineSetLauncher'" >> /root/.ipython/profile_mpi/ipcluster_config.py

WORKDIR /

# expose notebook port
EXPOSE 8888

Expand Down
5 changes: 5 additions & 0 deletions glucifer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ def stop_virtual_display():
global _display
if not _display is None:
_display.stop()

import os as _os
# disable collection of data if requested
if "GLUCIFER_USE_XVFB" in _os.environ:
start_virtual_display()

0 comments on commit 68dc796

Please sign in to comment.