Skip to content

Instantly share code, notes, and snippets.

View ptooley's full-sized avatar

Phil Tooley ptooley

View GitHub Profile
@ptooley
ptooley / build_newfloat.sh
Created January 5, 2018 11:39
Hacky building of latex style files
#!/bin/bash
mkdir .latexbuild
cd .latexbuild
wget http://mirrors.ctan.org/macros/latex/contrib/caption/newfloat.dtx
cat << EOF > buildnewfloat.ins
\def\batchfile{buildnewfloat.ins}
\input docstrip
\generate{\file{newfloat.sty}{\from{newfloat.dtx}{package}}}
@ptooley
ptooley / description.md
Last active November 28, 2017 16:41
custom kernel environments for jupyter-sharc.shef.ac.uk

Conda environments

By default the conda environment provided for sharc-jupyter is read only. To be able to have a configurable environment it must be created in our homedir. Once we have created our conda environment we can then register it as an ipython kernel, and it will become available in the kernel list for sharc-jupyter instances.

Creating the environment

In this example I will create an intel python environment, which is good choice for hpc use as it is built using intel's optimised libraries. But the same approach will work for any other conda environment.

New environments are created via the linux shell, which we can use the ipython terminal emulator to access: From the files tab, choose New -> Terminal. Alternatively use qrshx to get an interactive sharc session and load the conda module. Then, use the following commands to create a new environment.

%(optional) add intel channel to get the intel python packages
conda config --add channels intel