Running a Docker container with a non-root user

One of the main issues with Docker is that whenever you got into the container you will be the root. The consequence of this "feature" is that the user id inside the container does not correspond to the user id of the host. This implies that if a command such as git commit is run … Continue reading Running a Docker container with a non-root user

Advertisements

Adding R kernel to Jupyter notebook

If you have Anaconda installed, you can run Jupyter notebooks by typing $python -m notebook In case you need to add a R kernel, you will need to install the iterative kernels using the following commands: Update conda using $ conda update ipython-notebook Install the interactive R kernel with: $ conda install -c r r-essentials … Continue reading Adding R kernel to Jupyter notebook

Visualising a Python algorithm profile

Writing code is a delicate task, as one misplaced comma leads to compiler displays weird error messages. A practice that I usually employ while coding is to write the whole algorithm as a combination of smaller components (snippets). A positive point for dividing it into components is the ability to debug individual parts of the code, as … Continue reading Visualising a Python algorithm profile