Meson does not have built-in the ability to download any file.
While this could also be done via a custom_target(), we do it via run_command() in meson.build.
This
technique
uses only Python stdlib modules; no extra pip install is needed.
Python’s
urllib.request.urlretrieve
doesn’t have a way to handle connection timeouts.
This can lead to user complaints where they think your program is hanging, when really it’s a bad internet connection since urlretrieve will hang for many minutes.
For CDF file read / write, pure Python + Numpy
cdflib
as cdflib is OS-agnostic, easy to install and performant.
The .cdf file format is totally different from “.nc” NetCDF4 files, which are essentially specially formatted HDF5 files.
OpenGL support is widespread.
OpenGL enables extremely fast 2D and 3D animation–including from Python.
With VisPy, OpenGL is easily used with Matplotlib-like syntax to make interesting 3-D plots from Numpy arrays.
VisPy also has an advanced interface to OpenGL from Python.
Installing VisPy is easiest by:
conda install vispy
Examples:
git clone https://github.com/vispy/vispy
in the vispy/examples/demo directory are numerous examples.
Try using the mouse scroll wheel to zoom on some demos.
When using Git on Windows with Cygwin or Windows Subsystem for Linux, CRLF conflicts can falsely make a
Git repo dirty.
From Cygwin or WSL with line ending clashes, “git diff” will show ^M at the end of each line and fail merge on “git pull”.
This can cause missed code changes or needless commits.
We suggest to force LF line endings no matter what environment the user is in.
Even Windows Notepad supports LF line endings.
I find that sometimes files included in Python projects, for example Fortran files, have corrupted characters that are incorrect UTF-8 characters.
Maybe it’s a case of bad OCR that also plagues LaTeX / BibTeX copy / paste references from journal websites.
Thus, this method will also apply to BibTeX files.
Setup Xrdp server: remote Linux PC has the Xrdp server.
Install Xrdp and Openbox desktop
apt install xrdp openbox
Create ~/.xsession containing
exec openbox-session
Enable xrdp with new config
service xrdp restart
Openbox will show a grey screen upon typing password at Xrdp login.
Right-click mouse to open menu.
If only a gray/black screen, try editing /etc/xrdp/startwm.sh on the remote PC:
#!/bin/sh
if [ -r /etc/default/locale ]; then. /etc/default/locale
export LANG LANGUAGE
fiexec openbox-session