-
DescriptionI got the following error while
May I ask if I missed anything important here? My quarto=v1.4.550, plotly=v5.19.0, polars=0.20.10 The code is put in this repo, which was running correctly last night on another computer: ---
title: "test quarto dashboard"
format: dashboard
---
```{python}
import polars as pl
import plotly.express as px
import plotly.graph_objects as go
```
```{python}
# create df for solar farms
data_solar_farms = {
"name" : ["Setouchi Kirei", "Eurus Rokkasho", "Tomatoh Abira"],
"capacity_mw" : [235, 148, 111],
"latitude" : [34.6, 40.9, 42.7],
"longitude" : [134.1, 141.3, 141.7],
"state" : ["Okayama", "Aomori", "Hokkaido"],
"city" : ["Setouchi", "Rokkasho", "Abira"],
"year_operation": [2018, 2015, 2015],
}
df_solar_farms = pl.DataFrame(data_solar_farms)
```
```{python}
# create df for typhoon paths
data_typhoon = {
'name' : ['Lan', 'Lan', 'Lan', 'Guc', 'Guc', 'Guc'],
'idx' : [230701, 230702, 230703, 220301, 220302, 220303],
'latitude' : [31.1, 36.6, 41.0, 31.8, 36.6, 37.8],
'longitude' : [137.3, 133.0, 135.8, 128.4, 135.0, 142.2],
'date_time' : [
'2022-08-07 00:00:00',
'2022-08-07 06:00:00',
'2022-08-07 12:00:00',
'2023-06-06 18:00:00',
'2023-06-07 00:00:00',
'2023-06-07 06:00:00',
],
'grade' : [1, 3, 2, 4, 6, 5]
}
df_typhoon = pl.DataFrame(data_typhoon)
```
## Row {height=70%}
### Column {width=50%}
```{python}
#| title: map solar farms
fig_solar_farms = go.Figure(
go.Scattermapbox(
lat = df_solar_farms['latitude'],
lon = df_solar_farms['longitude'],
mode = 'markers',
marker = go.scattermapbox.Marker(
size=df_solar_farms['capacity_mw']/10
),
)
)
fig_solar_farms.update_layout(
mapbox_style="carto-darkmatter",
mapbox=dict(
center=go.layout.mapbox.Center(
lat=36,
lon=138
),
zoom=3
),
)
```
### Column {width=50%}
```{python}
#| title: map of typhoon paths
fig_typhoon = px.line_mapbox(
df_typhoon,
lat='latitude',
lon='longitude',
color='name',
animation_frame='name',
)
fig_typhoon.update_layout(
mapbox_style="carto-darkmatter",
mapbox_center_lat=36,
mapbox_center_lon=138,
mapbox_zoom=3,
)
```
## Row {height=30%} It's supposed to look like this: The output of my Quarto 1.4.550
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.4.550
Path: C:\Users\jizha\AppData\Local\Programs\Quarto\bin
CodePage: 936
[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Tex: (not detected)
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.11.7 (Conda)
Path: C:/Users/jizha/.conda/envs/ai/python.exe
Jupyter: 5.7.1
Kernels: python3
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/ |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
This comment has been hidden.
This comment has been hidden.
-
I believe this is an issue, specific to Windows You can follow it for a fix. |
Beta Was this translation helpful? Give feedback.
-
I got the same error with jupyter source, on mac |
Beta Was this translation helpful? Give feedback.
-
I get the same error with the same code but in
|
Beta Was this translation helpful? Give feedback.
I believe this is an issue, specific to Windows
You can follow it for a fix.