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
and try playing with your browser console with a command like ``Date.now();``. You should see a very large integer representing the number of nanoseconds elapsed since the first of January. 1970.
426
+
427
+
While Highcharts for Python will automatically convert NumPy `datetime64 <numpy:numpy.datetime64>` values into their
428
+
appropriate integers, you may want to do this conversion yourself. A demonstration is given below:
"""The referer to use when making requests to the export server. Defaults to the
111
+
``HIGHCHARTS_EXPORT_SERVER_REFERER`` environment variable if present, otherwise defaults to
112
+
``'https://www.highcharts.com'``.
113
+
114
+
:rtype: :class:`str <python:str>` or :obj:`None <python:None>`
115
+
"""
116
+
returnself._referer
117
+
118
+
@referer.setter
119
+
defreferer(self, value):
120
+
value=validators.url(value, allow_empty=True)
121
+
ifnotvalue:
122
+
value='https://www.highcharts.com'
123
+
124
+
self._referer=value
125
+
126
+
@property
127
+
defuser_agent(self) ->Optional[str]:
128
+
"""The user agent to use when making requests to the export server. Defaults to the ``HIGHCHARTS_EXPORT_SERVER_USER_AGENT`` environment variable if present, otherwise defaults to
129
+
``Highcharts Core for Python / v.<VERSION NUMBER>.
130
+
131
+
:rtype: :class:`str <python:str>` or :obj:`None <python:None>`
132
+
"""
133
+
ifself._user_agent:
134
+
returnself._user_agent
135
+
136
+
returnf'Highcharts Core for Python / v.{highcharts_version.__version__}'
137
+
138
+
@user_agent.setter
139
+
defuser_agent(self, value):
140
+
value=validators.string(value, allow_empty=True)
141
+
ifnotvalue:
142
+
value=None
143
+
144
+
self._user_agent=value
145
+
99
146
@property
100
147
defprotocol(self) ->Optional[str]:
101
148
"""The protocol over which the Highcharts for Python library should communicate
0 commit comments