MilesCranmer commited on
Commit
c035a23
1 Parent(s): c1721e1

hack(gui): temporarily disable IBM Plex Mono for HuggingFace

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -6
  2. gui/plots.py +8 -10
Dockerfile CHANGED
@@ -12,12 +12,12 @@ FROM python:${PYVERSION}-${BASE_IMAGE}
12
  COPY --from=jl /usr/local/julia /usr/local/julia
13
  ENV PATH="/usr/local/julia/bin:${PATH}"
14
 
15
- # Install font used for GUI
16
- RUN mkdir -p /usr/local/share/fonts/IBM_Plex_Mono && \
17
- curl -L https://github.com/IBM/plex/releases/download/v6.4.0/IBM-Plex-Mono.zip -o /tmp/IBM_Plex_Mono.zip && \
18
- unzip /tmp/IBM_Plex_Mono.zip -d /usr/local/share/fonts/IBM_Plex_Mono && \
19
- rm /tmp/IBM_Plex_Mono.zip
20
- RUN fc-cache -f -v
21
 
22
  # Set up a new user named "user" with user ID 1000
23
  RUN useradd -m -u 1000 user
 
12
  COPY --from=jl /usr/local/julia /usr/local/julia
13
  ENV PATH="/usr/local/julia/bin:${PATH}"
14
 
15
+ # # Install font used for GUI
16
+ # RUN mkdir -p /usr/local/share/fonts/IBM_Plex_Mono && \
17
+ # curl -L https://github.com/IBM/plex/releases/download/v6.4.0/IBM-Plex-Mono.zip -o /tmp/IBM_Plex_Mono.zip && \
18
+ # unzip /tmp/IBM_Plex_Mono.zip -d /usr/local/share/fonts/IBM_Plex_Mono && \
19
+ # rm /tmp/IBM_Plex_Mono.zip
20
+ # RUN fc-cache -f -v
21
 
22
  # Set up a new user named "user" with user ID 1000
23
  RUN useradd -m -u 1000 user
gui/plots.py CHANGED
@@ -1,18 +1,16 @@
1
- import logging
2
-
3
  import numpy as np
4
  import pandas as pd
5
  from matplotlib import pyplot as plt
6
 
7
  plt.ioff()
8
- plt.rcParams["font.family"] = [
9
- "IBM Plex Mono",
10
- # Fallback fonts:
11
- "DejaVu Sans Mono",
12
- "Courier New",
13
- "monospace",
14
- ]
15
- logging.getLogger("matplotlib.font_manager").disabled = True
16
 
17
  from data import generate_data
18
 
 
 
 
1
  import numpy as np
2
  import pandas as pd
3
  from matplotlib import pyplot as plt
4
 
5
  plt.ioff()
6
+ plt.rcParams["font.family"] = "monospace"
7
+ # plt.rcParams["font.family"] = [
8
+ # "IBM Plex Mono",
9
+ # # Fallback fonts:
10
+ # "DejaVu Sans Mono",
11
+ # "Courier New",
12
+ # "monospace",
13
+ # ]
14
 
15
  from data import generate_data
16