You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very convenient if there were a way to set the plotly directory in the PLOTLY_DIR environment variable, or default to ~/.plotly if the variable is not set. It can be easily done by changing line 4 here: https://github.com/plotly/plotly.py/blob/master/plotly/files.py
to the following:
Then, to specify a custom plotly directory when running a script which uses the plotly module, we can do PLOTLY_DIR=/path/to/plotly_dir python script_that_uses_plotly.py
The text was updated successfully, but these errors were encountered:
Also a big headacke getting plotly running with Microsoft IIS on Windows Server using CGI binding with python.exe. As home directory will be pointing to some subfolder under windows system folder. So a no-no for writing .plotly and .testing subfolders!!!
So now ,plotly folders are made in the Web folder where IIS User has permission to write/read.
And now I can use plotly on Microsoft 2016 server with IIS and Python via CGI.
But it would be better to have a more clean solution, I think!
(local accounts now get the ,plotly folders in each of their local directory where they run py with plotly.
I will submit this issue / feature request to plotly.
Done in #1195. If present, the PLOTLY_DIR environment variable is taken as the path to the plotly.py configuration directory. If not present, the path remains ~/.plotly.
I know it's been a while, but thanks for the suggestion @simon-zhu!
It would be very convenient if there were a way to set the plotly directory in the PLOTLY_DIR environment variable, or default to ~/.plotly if the variable is not set. It can be easily done by changing line 4 here: https://github.com/plotly/plotly.py/blob/master/plotly/files.py
to the following:
PLOTLY_DIR = os.environ.get("PLOTLY_DIR", os.path.join(os.path.expanduser("~"), ".plotly"))
Then, to specify a custom plotly directory when running a script which uses the plotly module, we can do
PLOTLY_DIR=/path/to/plotly_dir python script_that_uses_plotly.py
The text was updated successfully, but these errors were encountered: