Skip to content

Commit

Permalink
Rerun all guides/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Dec 4, 2020
1 parent 6ae9aa9 commit 0f1ffae
Show file tree
Hide file tree
Showing 77 changed files with 4,310 additions and 4,507 deletions.
18 changes: 0 additions & 18 deletions cartoframes/viz/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ def publish(self, name, password, credentials=None, if_exists='fail', maps_api_k
html = self._get_publication_html()
return self._publisher.publish(html, name, password, if_exists)

def delete_publication(self):
"""Delete the published layout visualization."""
return self._publisher.delete()

def update_publication(self, name, password, if_exists='fail'):
"""Update the published layout visualization.
Expand All @@ -176,20 +172,6 @@ def update_publication(self, name, password, if_exists='fail'):
html = self._get_publication_html()
return self._publisher.update(html, name, password, if_exists)

@staticmethod
def all_publications(credentials=None):
"""Get all map visualization published by the current user.
Args:
credentials (:py:class:`Credentials <cartoframes.auth.Credentials>`, optional):
A Credentials instance. If not provided, the credentials will be automatically
obtained from the default credentials if available.
"""
_credentials = get_credentials(credentials)

return KuvizPublisher.all(_credentials)

def _get_publication_html(self):
if not self._publisher:
_credentials = get_credentials(None)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/data_management/read_carto_query.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@
" const has_legends = 'False' === 'true';\n",
" const is_static = 'None' === 'true';\n",
" const layer_selector = 'False' === 'true';\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAJCWyF8C/62PwQrCMAxA/yXnOtrqWrvrwLN32WFsUQpzKTUexui/200Fve+Yx0semYGngFDBCVt+RqxpGLBjTyMIuL7ZA6rLDL7Plsz0fyGDEClgZL+IcxJwQ7ojxylPX/lMfuSsdkSx92PL69Gd3ReudFKJgyyMVdI1KYlPSm2fMkrrJVVa68xPSm+fOjpr1q+UUzqnmvQCPG44imoBAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAJCWyF8C/62PwQrCMAxA/yXnOtrqWrvrwLN32WFsUQpzKTUexui/200Fve+Yx0semYGngFDBCVt+RqxpGLBjTyMIuL7ZA6rLDL7Plsz0fyGDEClgZL+IcxJwQ7ojxylPX/lMfuSsdkSx92PL69Gd3ReudFKJgyyMVdI1KYlPSm2fMkrrJVVa68xPSm+fOjpr1q+UUzqnmvQCPG44imoBAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAOsNyl8C/62PwQrCMAxA/yXnOtrqWrvrwLN32WFsUQpzKTUexui/200Fve+Yx0semYGngFDBCVt+RqxpGLBjTyMIuL7ZA6rLDL7Plsz0fyGDEClgZL+IcxJwQ7ojxylPX/lMfuSsdkSx92PL69Gd3ReudFKJgyyMVdI1KYlPSm2fMkrrJVVa68xPSm+fOjpr1q+UUzqnmvQCPG44imoBAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAOsNyl8C/62PwQrCMAxA/yXnOtrqWrvrwLN32WFsUQpzKTUexui/200Fve+Yx0semYGngFDBCVt+RqxpGLBjTyMIuL7ZA6rLDL7Plsz0fyGDEClgZL+IcxJwQ7ojxylPX/lMfuSsdkSx92PL69Gd3ReudFKJgyyMVdI1KYlPSm2fMkrrJVVa68xPSm+fOjpr1q+UUzqnmvQCPG44imoBAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const mapboxtoken = '';\n",
" const show_info = 'None' === 'true';\n",
"\n",
Expand All @@ -1366,7 +1366,7 @@
"</iframe>"
],
"text/plain": [
"<cartoframes.viz.layer.Layer at 0x7f6e1754a5c0>"
"<cartoframes.viz.layer.Layer at 0x7ff965f282b0>"
]
},
"execution_count": 3,
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/data_management/read_carto_table.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@
" const has_legends = 'False' === 'true';\n",
" const is_static = 'None' === 'true';\n",
" const layer_selector = 'False' === 'true';\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAFqWyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAFqWyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAO8Nyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAO8Nyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const mapboxtoken = '';\n",
" const show_info = 'None' === 'true';\n",
"\n",
Expand All @@ -1390,7 +1390,7 @@
"</iframe>"
],
"text/plain": [
"<cartoframes.viz.layer.Layer at 0x7f805b9a4ba8>"
"<cartoframes.viz.layer.Layer at 0x7f6b5e729198>"
]
},
"execution_count": 3,
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/data_management/read_csv.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/examples/data_management/read_geojson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@
" const has_legends = 'False' === 'true';\n",
" const is_static = 'None' === 'true';\n",
" const layer_selector = 'False' === 'true';\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAI2SyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAI2SyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAPQNyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAPQNyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const mapboxtoken = '';\n",
" const show_info = 'None' === 'true';\n",
"\n",
Expand All @@ -1377,7 +1377,7 @@
"</iframe>"
],
"text/plain": [
"<cartoframes.viz.layer.Layer at 0x7fe5880da320>"
"<cartoframes.viz.layer.Layer at 0x7f05acc07080>"
]
},
"execution_count": 2,
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/data_management/read_json.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/examples/data_management/read_shapefile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@
" const has_legends = 'False' === 'true';\n",
" const is_static = 'None' === 'true';\n",
" const layer_selector = 'False' === 'true';\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIACuTyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIACuTyF8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const layers = [{&quot;credentials&quot;: null, &quot;data&quot;: &quot;H4sIAPkNyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;encode_data&quot;: true, &quot;has_legend_list&quot;: true, &quot;interactivity&quot;: [], &quot;legends&quot;: [], &quot;map_index&quot;: 0, &quot;options&quot;: {&quot;dateColumns&quot;: []}, &quot;source&quot;: &quot;H4sIAPkNyl8C/7XSPW8DIQwG4P/CfD1h82GcNVLn7lWGKKEVUnqcKB2i0/33clwqkZ2OWIZHNu8i8n324iBe/Tn/JH+Mt5u/5BAnMYiPvfYtDu+LCNfSJUv1+UIpzCnOPuWwNS7rID59/PI53cvpr/kthimX1kuM6Rqmc66PvpAa2bCEQcvREkg+revwoKA/ZQFxowwR24bC/pRjsnUqYMCGUp0pPUokrSulwLSU7k9Jya4ukBVCQ5n+C2S0eyyc020sbHfKkQRTKVM22FDUf4FKgXrEAqmh3D8kUJsadstPQ3F/STu9f5VCuQ11Wn8BOR2ZplYEAAA=&quot;, &quot;title&quot;: null, &quot;type&quot;: &quot;GeoJSON&quot;, &quot;viz&quot;: &quot;color: hex(\\&quot;#EE4D5A\\&quot;)\\nstrokeColor: opacity(#222,ramp(linear(zoom(),0,18),[0,0.6]))\\nstrokeWidth: ramp(linear(zoom(),0,18),[0,1])\\nwidth: ramp(linear(zoom(),0,18),[2,10])\\n&quot;, &quot;widgets&quot;: []}];\n",
" const mapboxtoken = '';\n",
" const show_info = 'None' === 'true';\n",
"\n",
Expand All @@ -1376,7 +1376,7 @@
"</iframe>"
],
"text/plain": [
"<cartoframes.viz.layer.Layer at 0x7f8ef078cc18>"
"<cartoframes.viz.layer.Layer at 0x7f7dfc238208>"
]
},
"execution_count": 2,
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/data_observatory/access_dataset.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/examples/data_observatory/discover_dataset.ipynb

Large diffs are not rendered by default.

102 changes: 99 additions & 3 deletions docs/examples/data_observatory/enrichment_subscription_workflow.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 0f1ffae

Please sign in to comment.