python

computing, Solaris

Installing Jupyter Notebooks on Solaris

pip installing jupyterlab may give you the following error (somewhere in the error output anyway!): The simplest solution I’ve found to this is just to install libzmq. We can pull the latest code from github and install it. I usually install things in /opt but as the pip process will look for libzmq in /usr/local, […]

computing, Solaris

Install scipy on Solaris

When trying to install scipy via pip on Solaris you may encounter this error: There’s a simple way to resolve this but it’s not immediately obvious. BLAS (Basic Linear Algebra Subprograms) and LAPACK (Linear Algebra Something Something…?) are actually provided by the Solaris math and perf libraries, so installing those and setting a couple of

computing

Django Q function

When querying objects in django the simplest way is to use the filter() query. If we have a set of systems for example and we want to filter out those that have a SPARC architecture we could do: >>> System.objects.filter(architecture=”sparc”) And if we wanted to narrow that down to only sparc machines that use NIS

computing

Python: Creating a singleton (to control an Arduino)

A while ago I was writing a tool in python to communicate with a sensor on an Arduino. The idea was to have a class for the Arduino that would hold the connection and handle the reading and writing to the serial port. However that way I needed to have the object maintain the connection

Scroll to Top