Quarto dashboard deployed in server (.venv) #10950
-
DescriptionHi everybody, I have an app coded in Quarto/Py-Shiny. It sends queries to a database and plots some data. The app worked fine locally (with WAMP and MySQL), so I decided to deploy it on a server.
it works fine. Now, when I compile the app with:
I get an error in a log file I created: "No such comm target registered: quarto_kernel_setup". When I launch the I can't figure out where this comes from. I've emptied all my app code, leaving only the YAML and a bit of code but I still get this error/message. Note that I have my module in a virtual environment using source ~/.venv/bin/activate. "(.venv) lizard@visu-drifter-int:~$ quarto render /home/lizard/visu/visualise_app.qmd
WARN: Specified QUARTO_PYTHON 'C:\Users\lloyd\anaconda3\python.exe' does not exist
WARN: No python binary found in specified QUARTO_PYTHON location 'C:\Users\lloyd\anaconda3\python.exe'"
(then continues compiling)
Thank you for any feedback! Here's my example => ---
title: "Processing visualisation"
author: "me"
format:
dashboard
server: shiny
logo: ./mylogo.png
---
```{python}
import os
from shiny import render, reactive, ui
from shinywidgets import render_widget, output_widget
import plotly.graph_objects as go
import plotly.express as px
import matplotlib.pyplot as plt
import pandas as pd
import polars as pl
import connectorx
import numpy as np
import mysql.connector
from mysql.connector import Error
from datetime import datetime
import time
import logging
# Configure logging to write to a file
logging.basicConfig(filename='./app_logs.log', level=logging.INFO, format='%(asctime)s - %(message)s')
# ############# Server
uri = "mysql://root:@localhost/my_BD"
logging.info(uri)
myhost='localhost'
myuser='root'
mypwd=''
myDB='my_BD'
```
# {.sidebar}
```{python}
logging.info('hey')
color_l0 = '#E60000'
color_l1 = '#228B22'
color_l2 = '#1C1C1C'
size_l0 = 60
size_l1 = 40
size_l2 = 20
ui.input_select("Principal", "Select :", choices=['Echo', 'Charlie'])
ui.input_select("type", "Select type:", choices=[])
ui.input_select("id", "Select ID", choices=[])
logging.info('tmp')
```
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. Did you read https://quarto.org/docs/dashboards/deployment.html#shiny-dashboards ? |
Beta Was this translation helpful? Give feedback.
You might want to look for "shinylive" the WASM version then.