PermissionError - potential solutions

Hi.

I’m running Plotly on my work computer and as a default setting I don’t have a write permission to my C drive. I understand that Pltoly uses C drive in the background while running scripts; therefore, I’m not able to utilize on my work computer. What would you recommend to do to circumvent this problem? Is there a global solution for such permission error problems for both Plotly and Dash? I was recommended to change working directory for Plotly but I don’t know how to do it or whether it solves the problem at all.

Here is the code I’m trying to run (from Plotly website):

# x and y given as array_like objects
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()

And this is the error message:

PermissionError                           Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\plotly\express\_core.py in apply_default_cascade(args)

C:\ProgramData\Anaconda3\lib\site-packages\plotly\io\_templates.py in __getitem__(self, item)

C:\ProgramData\Anaconda3\lib\pkgutil.py in get_data(package, resource)
    636     resource_name = os.path.join(*parts)
--> 637     return loader.get_data(resource_name)

C:\ProgramData\Anaconda3\lib\importlib\_bootstrap_external.py in get_data(self, path)

PermissionError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\plotly\\package_data\\templates\\plotly.json'

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
<ipython-input-3-9d5bdef49fab> in <module>
      1 import plotly.express as px
----> 2 fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
      3 fig.show()

C:\ProgramData\Anaconda3\lib\site-packages\plotly\express\_chart_types.py in scatter(data_frame, x, y, color, symbol, size, hover_name, hover_data, custom_data, text, facet_row, facet_col, facet_col_wrap, facet_row_spacing, facet_col_spacing, error_x, error_x_minus, error_y, error_y_minus, animation_frame, animation_group, category_orders, labels, orientation, color_discrete_sequence, color_discrete_map, color_continuous_scale, range_color, color_continuous_midpoint, symbol_sequence, symbol_map, opacity, size_max, marginal_x, marginal_y, trendline, trendline_options, trendline_color_override, trendline_scope, log_x, log_y, range_x, range_y, render_mode, title, template, width, height)

C:\ProgramData\Anaconda3\lib\site-packages\plotly\express\_core.py in make_figure(args, constructor, trace_patch, layout_patch)

C:\ProgramData\Anaconda3\lib\site-packages\plotly\express\_core.py in apply_default_cascade(args)

C:\ProgramData\Anaconda3\lib\site-packages\plotly\graph_objs\layout\_template.py in __init__(self, arg, data, layout, **kwargs)

ValueError: The first argument to the plotly.graph_objs.layout.Template 
constructor must be a dict or 
an instance of :class:`plotly.graph_objs.layout.Template`