Skip to content
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

Fast example #5

Merged
merged 7 commits into from
Oct 4, 2020
Merged

Fast example #5

merged 7 commits into from
Oct 4, 2020

Conversation

MarcSkovMadsen
Copy link
Contributor

@MarcSkovMadsen MarcSkovMadsen commented Sep 30, 2020

Example showcasing how to use the fast.design components with the panel-components package.

WORK IN PROGRESS.

Builds on #3.

The only new contribution is the file fast_hello_world.py. Can be run via python -m panel serve 'examples\fast_hello_world.py' --dev.

image

I have the following questions for @paulopes

  1. How do I add raw_css? I would like to set the body margin to 0px.
  2. How do I solve the "Bokeh is not defined" problem and get the bar chart shown?
  3. How do integrate the Button with the Panel backend such that when I click it I can update the bar chart?

@MarcSkovMadsen
Copy link
Contributor Author

I found out I need to set main=True in order to load the Bokeh assets

image

The next problem is to find out why the assets are not served

image

@MarcSkovMadsen
Copy link
Contributor Author

Got the Bokeh assets served.

image

Next problem to solve is Error rendering Bokeh items: either 'docid' or 'sessionid' was expected..

image

@MarcSkovMadsen
Copy link
Contributor Author

I believe the problem is some "older" version mismatch between the bokeh js served and the Bokeh/ Panel packages I'm running.

The current version of Bokeh .js works with docid and token instead of docid and sessionid. There is also a token in the document and no docid or sessionid.

image

@MarcSkovMadsen
Copy link
Contributor Author

I can see that the CDN version of Bokeh in panel-components is an older 1.4.0

image

@MarcSkovMadsen
Copy link
Contributor Author

MarcSkovMadsen commented Sep 30, 2020

I updated the local bokeh and panel .js to (unfortunately) a mix of 2.1.1 and 2.2.1.

But it "Works".

image

The main question for me now is. HOW DO I CONNECT THE FAST BUTTON TO THE PYTHON PANEL BACKEND? I wan't to change the chart when the button is clicked.

@paulopes
Copy link
Owner

paulopes commented Oct 4, 2020 via email

@paulopes
Copy link
Owner

paulopes commented Oct 4, 2020 via email

@paulopes
Copy link
Owner

paulopes commented Oct 4, 2020 via email

@paulopes paulopes merged commit eeeee63 into paulopes:master Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants