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
Django Panel with channels for multi apps #928
Conversation
@stefjunod Thanks again, this is looking great overall! I've left a few comments but would be happy to address them myself. My only other comment is that the market_data.csv is pretty big and we might want to find a different way to ship that file or include only a subset. |
Hi, Another commit with the stockscreener working .... So we have 3 apps:
In pn_model.py
In the pn_app.py I had to refer to each widget separately (ss.Index, ss.From, ss.Rebase):
This seems easier than using the widgets =.... For the theming, I have a file in the django project folder themes.py:
I was not able to set the colormaps of hv plot in the plot_themes(), so I put in settings.py a
Then in my pn_model.py I had to import it and use it (not pretty....)
Questions ?
Cheers, |
Let me know if you want me to look at that, just describe what you want.
That seems fine although I'll look at cleaning that up.
In theory it's possible but I haven't tried persisting sessions in that way.
Yes, let me know where and I can make those changes. |
hvPlot overrides the defaults from HoloViews so we'd probably have to add a way to override hvPlot defaults. Therefore I think the current answer is no. |
Btw, I really appreciate your efforts here, this is great stuff! |
Seems to work, not sure if it is best practice....
Could be interesting to investigate, but not priority...at least for me
For the change you could look into the gbm app pn_models.py as It may take a while to compute and there is a lot sliders. I will clean everything next week. Have a nice week end. |
Hi, Hopefully we are getting there. Hence my final commit... I was not able to add a button to recalc the gbm app pn_models.py:
Otherwise, it works. Hope this helps, |
Hi, I finally succeeded in getting the refresh button to work. The gbm app refresh the plot only when the refresh button is clicked.
I left the comment to show the other pattern. Cheers, |
Perfect! Sorry I haven't gotten around to working on this yet. I'm hoping to clean it up and merge it by the end of the week. |
Codecov Report
Continue to review full report at Codecov.
|
Thanks again @stefjunod! Hugely appreciate the effort you've put in here. |
Example use of panel with django for a multi apps / multi panels website
README.md provide a description / tutorial
3 apps:
Each apps has a:
Issues/ Not working: