@@ -757,10 +757,12 @@ def get_chrome() -> None:
757
757
"""
758
758
759
759
if not kaleido_available () or kaleido_major () < 1 :
760
- raise ValueError ("""
760
+ raise ValueError (
761
+ """
761
762
This command requires Kaleido v1.0.0 or greater.
762
763
Install it using `pip install 'kaleido>=1.0.0'` or `pip install 'plotly[kaleido]'`."
763
- """ )
764
+ """
765
+ )
764
766
765
767
# Handle command line arguments
766
768
import sys
@@ -792,28 +794,34 @@ def get_chrome() -> None:
792
794
# located at chrome_install_path; otherwise fail
793
795
if user_specified_path :
794
796
if not chrome_install_path .exists ():
795
- raise ValueError (f"""
797
+ raise ValueError (
798
+ f"""
796
799
The specified install path '{ chrome_install_path } ' does not exist.
797
800
Please specify a path to an existing directory using the --path argument,
798
801
or omit the --path argument to use the default download path.
799
- """ )
802
+ """
803
+ )
800
804
# Make sure the path is a directory
801
805
if not chrome_install_path .is_dir ():
802
- raise ValueError (f"""
806
+ raise ValueError (
807
+ f"""
803
808
The specified install path '{ chrome_install_path } ' already exists but is not a directory.
804
809
Please specify a path to an existing directory using the --path argument,
805
810
or omit the --path argument to use the default download path.
806
- """ )
811
+ """
812
+ )
807
813
808
814
# If any arguments remain, command syntax was incorrect -- print usage and exit
809
815
if len (cli_args ) > 1 :
810
816
print (usage )
811
817
sys .exit (1 )
812
818
813
819
if not cli_yes :
814
- print (f"""
820
+ print (
821
+ f"""
815
822
Plotly will install a copy of Google Chrome to be used for generating static images of plots.
816
- Chrome will be installed at: { chrome_install_path } """ )
823
+ Chrome will be installed at: { chrome_install_path } """
824
+ )
817
825
response = input ("Do you want to proceed? [y/n] " )
818
826
if not response or response [0 ].lower () != "y" :
819
827
print ("Cancelled" )
0 commit comments