-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run ChartJS example from custom_models.md #7402
Comments
There is a working example in #7408 @LyndonAlcock. My recommendation @philippjfr would be to remove the code from the docs. Keep this PR alive and link to it in the docs. Probably make this example a real ChartJS example instead of a Button with the class name ChartJS - or alternative change it to a CustomButtonWidget example. Having it as a PR would make it so much easier to test out and update when needed. Creating the files actually takes a long time. And now that the example also requires updating existing files its just hard to explain. |
Hi @MarcSkovMadsen , unfortunately this still doesn't seem to work when i try to run the command
The parameters for the panel appear to show correctly but the actual click me button does not show while the console says bokeh items are rendered successfully: also i had to make this change to chartjs.py to get it to run on my system as it was showing import errors: from __future__ import annotations
from typing import (
TYPE_CHECKING, ClassVar, Mapping, Optional,
)
# ...
if TYPE_CHECKING:
from bokeh.document import Document
from bokeh.model import Model
from pyviz_comms import Comm, JupyterComm |
Did you
|
yes but it still didn't work but I had better close the issue as I am no longer as I am no longer working on implementing with the Bokeh - Typescript approach |
Software Version Info
The impression I get is that the custom_models.md is potentially a little out of date or does not build for all systems. while attempting to create the example custom model using ChartJS I encounterered a few errors in the chartjs.ts file that had to be changed but the bulk of the issue is when I run the final :
A window is opened showing the python error:
Changes Made from the custom_models example:
for the most part I have followed the custom_models.md to the word except for these changes required to get the code to run:
panel/model/chartjs.py
panel/model/chartjs.ts
The text was updated successfully, but these errors were encountered: