Skip to content

Instantly share code, notes, and snippets.

View test_tensorcast_gpu.jl
using Pkg
Pkg.activate(".")
using TensorCast
using CuArrays
using BenchmarkTools
BenchmarkTools.DEFAULT_PARAMETERS.seconds = 0.5
function test_cast(T)
@jfeist
jfeist / ArrivalInSpain.md
Last active Nov 18, 2020
to-do list for new (foreign) PhD students/postdocs upon arrival at UAM (from Alex Delga)
View ArrivalInSpain.md

Your arrival in Spain: getting through the administrative maze

Welcome to Spain, and more particularly to our group. Even if Spanish people are generally warm and welcoming, it is sometimes hard for newcomers, especially the non-spanish-speakers, to find their way through all the administrative steps in order to settle down easily. These small guidelines will give you an overview of the process, that can be quite time-(and patience)- consuming. We will focus mostly on how to get to signing your contract. In any case you should go to the Servicio de Acogida para los Extranjeros on Plaza Mayor at the UAM: it is their job to walk you through your arrival.

View qutip_spectrum_ss.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View nbflatten.jq
#!/bin/sh
jq -r 'def banner: "\(.) " + (28-(.|length))*"-";
("Non-cell info" | banner), del(.cells), "",
(.cells[] | ("\(.cell_type) cell" | banner),
"\(.source|add)",
if ($show_output == "1") then
"",
( select(.cell_type=="code" and (.outputs|length)>0) |
("output" | banner),
(.outputs[] |
@jfeist
jfeist / Jupyter tips & tricks.md
Last active Dec 14, 2019
Jupyter tips & tricks
View Jupyter tips & tricks.md

Jupyter Notebook extensions

Very useful collection of extensions for Jupyter Notebook (not JupyterLab though): https://github.com/ipython-contrib/jupyter_contrib_nbextensions - installed on soleus, all the extensions can be activated/configured through the "Nbextensions" tab in the notebook tree view (the "file explorer").

Matplotlib

style files

I have written two matplotlib style files, jf.mplstyle (default line colors based on seaborn with small modifications) and jf_cb.mplstyle (default line colors based on recommendations for viewers with colorblindness from Nature Methods 8, 441 (2011)). To use these, you can either (after having run import matplotlib.pyplot as plt or %pylab inline before)

  • call plt.style.use('https://johannesfeist.eu/misc/jf.mplstyle') in your python notebook to use the style file you want directly from my server.
  • or download the file and save it into into your local matplotlib style directo
You can’t perform that action at this time.