|
@@ -1,4 +1,5 @@
|
|
|
import itertools
|
|
|
+import os
|
|
|
import pathlib
|
|
|
import typing
|
|
|
import warnings
|
|
@@ -6,6 +7,7 @@ import warnings
|
|
|
import numpy
|
|
|
import pandas
|
|
|
import pgpdump
|
|
|
+import pyperclip
|
|
|
import scipy.io.wavfile
|
|
|
import sympy
|
|
|
import yaml
|
|
@@ -14,6 +16,11 @@ from matplotlib import pyplot # pylint: disable=unused-import; frequently used
|
|
|
# https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html
|
|
|
pandas.options.display.max_rows = 200
|
|
|
|
|
|
+if os.environ.get("WAYLAND_DISPLAY"):
|
|
|
+ # with default "gi" in python3-pyperclip=1.8.2-2 & python3-gi=3.42.2-3+b1
|
|
|
+ # pyperclip.paste() always returned empty string
|
|
|
+ pyperclip.set_clipboard("wl-clipboard")
|
|
|
+
|
|
|
# https://docs.sympy.org/latest/modules/interactive.html#module-sympy.interactive.printing
|
|
|
sympy.init_printing(pretty_print=True)
|
|
|
|