Skip to content

Commit 3f72b6f

Browse files
authored
Merge pull request #15 from atmos-cloud-sim-uj/slayoo-patch-2
switch back to png as default inline format so that nbviewer and other notebook renderers show the plots
2 parents 24b5a6c + 5cc7862 commit 3f72b6f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

atmos_cloud_sim_uj_utils/pip_install_on_colab.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# pylint: disable-next=missing-module-docstring
1+
# pylint: disable=missing-module-docstring
22

33
def pip_install_on_colab(*args):
44
"""executes pip (and ldconfig) ensuring Colab subtleties are handled as sane as it can get"""
5-
# pylint: disable-next=import-outside-toplevel
6-
# pylint: disable-next=multiple-imports
7-
# pylint: disable-next=import-error
5+
# pylint: disable=import-outside-toplevel
6+
# pylint: disable=multiple-imports
7+
# pylint: disable=import-error
88
import subprocess, notebook, tornado, sys
99
subprocess.check_call([
1010
sys.executable, '-m', 'pip', '--quiet', '--use-deprecated=legacy-resolver', 'install',

atmos_cloud_sim_uj_utils/show_plot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable-next=missing-module-docstring
1+
# pylint: disable=missing-module-docstring
22

33
from matplotlib import pyplot
44
from IPython.display import display
@@ -7,7 +7,7 @@
77
from atmos_cloud_sim_uj_utils.temporary_file import TemporaryFile
88

99

10-
def show_plot(filename=None, fig=pyplot, inline_format='svg'):
10+
def show_plot(filename=None, fig=pyplot, inline_format='png'):
1111
""" the missing click-to-save-as-pdf button for matplotlib/Jupyter (use instead of *.show()) """
1212
link = save_and_make_link(fig, filename)
1313
select_figure_formats(InteractiveShell.instance(), {inline_format})

atmos_cloud_sim_uj_utils/temporary_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable-next=missing-module-docstring
1+
# pylint: disable=missing-module-docstring
22

33
import os
44
import sys

0 commit comments

Comments
 (0)