• ## Embedding Video in Jupyter Notebooks

Here’s something that has been bugging me for a while - embedding video in Jupyter Notebooks. A quick Google search brings up a load of deprecated modules from the pre-Jupyter IPython days, but it turns out this is the way to do it. Make sure you get the full iframe...

• ## The Terminal Beach, J.G. Ballard

This review is also available on Goodreads. Before ‘The Terminal Beach’ I hadn’t read any Ballard before, but I’m aware of his other work (Empire of the Sun, the Crystal World, the recently cinematised High-Rise) and the reputation he’s built on them. I’ve spoken before on this blog about the...

• ## h5py: reading and writing HDF5 files in Python

If you’re storing large amounts of data that you need to quick access to, your standard text file isn’t going to cut it. The kinds of cosmological simulations that I run generate huge amounts of data, and to analyse them I need to be able access the exact data that...

• ## Deriving the Jean's Mass

The early universe was a pretty uninteresting place, an expanse of neutral hydrogen with a few marginally heavier elements scattered around. It wasn’t until overdense regions of gas started to collapse and condense that stars and galaxies formed. But this collapse only occurs under the right conditions; the gravitational collapse...

• ## Using Overleaf with Git

I’ve had my eye out for an online Latex editor since first starting to learn the markup language back in my undergraduate. Latex is tricky to serve through the browser since compiling it can actually be quite computationally expensive, and supporting the array of packages must be a bit of...

• ## European Fields

Me and Annie recently went to a photography exhibition, Strange and Familiar at the Barbican showcasing the work of international photographers on the theme of Britain. The idea was to show how they capture British life from outside its social confines, from the bowler hats and conservatism of the 1930s,...

• ## Cosmography of the local universe

I found this neat visualisation on the Astrostatistics and Astroinformatics Portal. It’s difficult to discern the topology of our local cosmic environment through 2D plots alone, but without context 3D visualisations can be just as confusing and unwieldy. The authors of this video do a really great job in revealing...

• ## Maxwell's equations in terms of potentials

Maxwell’s equations are most commonly given in terms of the electric and magnetic fields $\mathbf{E}$ & $\mathbf{B}$. They can also be expressed in terms of the electric potential, $\varphi$, and the magnetic potential, $\mathbf{A}$, which can be physically interpreted as the potential energy per unit charge, and the potential energy...