If you enclose a regex in parentheses ()
whatever is enclosed can be used in a search and replace by a number that is indexed starting with 1.
So for example
\section{\sc Research Interests}
can be found with the regex
If you enclose a regex in parentheses ()
whatever is enclosed can be used in a search and replace by a number that is indexed starting with 1.
So for example
\section{\sc Research Interests}
can be found with the regex
Examples of X11 forwarding to Docker for Linux and macOS. In both situations:
xhost
is used to set the host and/or user names allowed to make connections to the X serverDISPLAY
Docker environment variable must be set/tmp/.X11-unix/
directory must be volume mounted into the container at /tmp/.X11-unix/
# Use the generator .next method to quickly get the first non-None item in a list | |
if __name__ == "__main__": | |
item_list = [None, None, "non-None-A", "non-None-B", None] | |
item = next(item for item in item_list if item is not None) | |
assert item == "non-None-A" | |
print(item) | |
# - axes = next( | |
# - artist |
It is first worth reading about backends in the matplotlib
Usage Guide.
Running
$ python with_gui.py
.ipynb_checkpoints/ |
This is an example of how to create a stacked bar plot with percent family from a fish data set. Using this example you will be able to take a full data set and compute the family proportions just before plotting without the need to save a new dataframe.
.ipynb_checkpoints/ | |
example.root |
name: Deploy build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
jobs: |
I'm seeing a bug between pyAMI
v5.1.2
on CVMFS with inconsistent return structure for the provenance node dicts.
The docs mention that for the pyAMI.atlas.api.get_dataset_prov
API the return should be
a map of python dictionnaries. The key "node" gives a list of dataset with the distance to the given dataset and the key "edge" gives the list of successive pairs of input an output datasets.
This is true for Python 2.7, but for Python 3 the return structure is inconsistent with some datasets in the provenance node list having a return of