marcskovmadsen / awesome-analytics-apps-template Goto Github PK
View Code? Open in Web Editor NEWThis starter will get you up and running in no time building your own custom site similar to awesome-panel.org
License: Apache License 2.0
This starter will get you up and running in no time building your own custom site similar to awesome-panel.org
License: Apache License 2.0
Currently the meta data of all apps is defined in the applications.toml
file. Thus if you want to create, update or delete an app you need to remember to change the applications.toml
file.
I'm thinking that it would be easier if each application folder contained it's own config.toml
file with the meta data. And then only one line registering the app/ folder somewhere would include it in the application. Or maybe just automatically adding any application folder containing a config.toml
file.
This is more in line with how for example Django works.
Any ideas?
Thanks
Running with invoke site.serve
triggers the following exception
ERROR:bokeh.application.application:Error running application handler <bokeh.application.handlers.script.ScriptHandler object at 0x7f4419cc9430>: 'TemplateConfig' object has no attribute 'js_files'
File "base.py", line 512, in _template_resources:
for name, js in self.config.js_files.items(): Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/bokeh/application/handlers/code_runner.py", line 197, in run
exec(self._code, module.__dict__)
File "/home/meir/web-dashboard/awesome-analytics-apps-template/src/apps/home/app.py", line 31, in <module>
view().servable()
File "/usr/local/lib/python3.8/dist-packages/panel/viewable.py", line 315, in servable
self.server_doc(title=title, location=True)
File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 292, in server_doc
return self._init_doc(doc, title=title, location=location)
File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 464, in _init_doc
self._update_vars()
File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 613, in _update_vars
self._render_variables['template_resources'] = self._template_resources()
File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 512, in _template_resources
for name, js in self.config.js_files.items():
AttributeError: 'TemplateConfig' object has no attribute 'js_files'
HI @MarcSkovMadsen ,
It's not entirely clear how to create a simple ipywidget
or panel
based application (a page) which will open with the side menu and title. I don't really care if clicking on the menu will just load the content or reload the whole page, but the existing examples (i.e. hello_ipywidgets_world
) are loading on their own without title and menu.
Thanks
Hi Marc,
I am getting back to work on this effort.
I noticed that when reusing this template in my apps - the page content is sometimes loading and sometimes not. There are frontend exceptions.
I tried loading the template as-is the same exceptions occur. Before digging further, I'd like to fix those:
Uncaught Error: Cannot find module '@bokehjs/styles/buttons'
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:89)
at Object._ (panel.min.js:84)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object._ (panel.min.js:45)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object._ (panel.min.js:44)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object.main.register_plugin (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:147)
at panel.min.js:38
at panel.min.js:43
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:91 Uncaught Error: Cannot find module '@bokehjs/styles/mixins'
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:89)
at Object._ (awesome_panel_extensions.js:240)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object._ (awesome_panel_extensions.js:58)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object._ (awesome_panel_extensions.js:47)
at require (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:107)
at Object.main.register_plugin (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:147)
at awesome_panel_extensions.js:38
at awesome_panel_extensions.js:43
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:184 [bokeh] setting log level to: 'info'
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585 [bokeh] Websocket connection 0 is now open
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585 Error: Model 'panel.models.markup.HTML' does not exist. This could be due to a widget or a custom model not being registered before first usage.
at Object.r.Models (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:166)
at Function._instantiate_object (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at Function._instantiate_references_json (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at Function.from_json (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at d._repull_session_doc (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585)
_repull_session_doc @ bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585 [bokeh] Failed to repull session Error: Model 'panel.models.markup.HTML' does not exist. This could be due to a widget or a custom model not being registered before first usage.
_repull_session_doc @ bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:584 [bokeh] Failed to load Bokeh session H3LcnKsWtjDuACHRp1LbHRjoNpgli5rYekjQWtEvqgcD: Error: Model 'panel.models.markup.HTML' does not exist. This could be due to a widget or a custom model not being registered before first usage.
t.add_document_from_session @ bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:584
bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:163 Error rendering Bokeh items: Error: Model 'panel.models.markup.HTML' does not exist. This could be due to a widget or a custom model not being registered before first usage.
at Object.r.Models (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:166)
at Function._instantiate_object (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at Function._instantiate_references_json (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at Function.from_json (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:165)
at d._repull_session_doc (bokeh.min.js?v=53a5940fe1028de5b74a0dfa95ff5b5d:585)
DevTools failed to load SourceMap: Could not load content for http://localhost:5007/static/extensions/awesome_panel_extensions/awesome_panel_extensions.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Any idea?
Thanks
invoke site.serve opened 4 tabs in my default browser
Result: (firefox) no content, with console errors
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://unpkg.com/@microsoft/[email protected]. (Reason: CORS request did not succeed)
Result: (chrome) opening a corresponding tab in chrome succeeds.
OS:
Description: Pop!_OS 20.10 (derived from ubuntu 20.10)
Release: 20.10
Jupyter:
jupyter core : 4.7.0
jupyter-notebook : 6.1.5
qtconsole : 5.0.1
ipython : 7.19.0
ipykernel : 5.4.2
jupyter client : 6.1.7
jupyter lab : 2.2.9
nbconvert : 5.6.1
ipywidgets : 7.6.2
nbformat : 5.0.8
traitlets : 5.0.5
Firefox: Mozilla Firefox 84.0
Chromium: Chromium 83.0.4103.116 built on Debian bullseye/sid, running on Debian bullseye/sid
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.