I am trying to use voila to turn my Jupyter notebook into an interactive webpage (with the end goal of putting it on Github and using it in Binder). Voila seems to work fine when I don't try to display any IPython widgets, but as soon as try to display some, I get a Javascript error saying:
Failed to load model class 'VBoxModel' from module '#jupyter-widgets/controls'
Error: Module #jupyter-widgets/controls, version ^1.5.0 is not registered, however, 2.0.0 is
at tn.loadClass (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:117212)
at tn.loadClass (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:472:57590)
at tn.loadModelClass (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:114982)
at tn._make_model (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:111789)
at tn.new_model (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:109386)
at http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:110660
at Array.map ()
at tn._loadFromKernel (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:110550)
at async tn.build_widgets (http://localhost:8812/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:472:56804)
at async init (http://localhost:8812/voila/templates/lab/static/main.js?v=07cc494763c3dcb3b604da7aa291ed361b8b163d9cb33c4bc3a66304c18e1dc5bfcf8c6101b6b6426ab36762a01a8568e9f3bf0c7ba6588cd61eab538b95e34a:63:13)
It doesn't seem to be a problem with my code, as I tried it on the demo voila code and still got the error, only when I try to display widgets.
My assumption is that it is a problem with packages I have downloaded, so I already tried making new anaconda environments, updating packages, etc.
I tried using voila to turn my Jupyter notebook with widgets into an interactive web page, but I get Javascript errors when using widgets.
Related
I am trying to simply upgrade the version of vue3 we are running at work from v3.2.31 to v3.2.40. However, when I do, I am now getting an error in the runtime-dom.d.ts
Below is a screen shot from the file with vue v3.2.31 installed.
Once I've run the "npm update vue --save" command, the file looks like this (v3.2.40)...
...and VS 2022 throws the following error when trying to build...
If I delete the line from my local copy of runtime-dom.d.ts, all works as before. My problem comes when deploying the solution to the development environment etc. The npm install step puts a version of the runtime-dom.d.ts that does still have this line.
I'd like to fix this without having to resort to hacking the runtime-dom.d.ts file if at all possible.
Many thanks in advance.
I want to use aerender in docker to render multiple videos.
I was able to install after effects and it works so far.
But unfortunately I have a problem: I want to use a custom render- and output module template.
Normally, with gui I would just import it, but I don't know if there is a command for command line to import it, so I tried an alternative:
I copied these settings:
Adobe After Effects 15.1 Prefs-indep-output.txt
Adobe After Effects 15.1 Prefs-indep-render.txt
from my normal computer (from path .../AppData/Adobe/After Effects/15.1) to the config folder on the docker image
But whenever I try to run aerender, I get the following error:
aerender version 15.1.1x12 After Effects warning: Invalid menu operation.
After Effects can't continue: unexpected failure during
application startup
Is there any solution for this problem?
I am new to graphite. After setting it up, I ran into the issue that no graphs can be viewed (or plotted) but everything else seems fine. If I tried to open the graph directly from its url it says "The image http://.... cannot be displayed because it contains errors".
Below is the output in console when I tried clicked on loadavg_1min and displayed it:
[03/Aug/2015 21:07:06]"GET /render/?width=1041&height=542&_salt=1438661217.502 HTTP/1.1" 200 4
- Broken pipe from ('127.0.0.1', 52538)
There are nothing special about my setup, I use a Mac 10.10 and totally follow the documentation to follow the initialization, everything is default except the CARBONLINK_HASHING_KEYFUNC in local_settings.py, which I set it to "None". And I followed this link to get started: http://graphite.wikidot.com/quickstart-guide.
I will provide more information if that is needed. Thank you in advance!
In my Graphite Browser, the Graphite Composer just shows a broken image.
You can check the error at http://yourGraphiteServer.com/dashboard. It gives you a complete python traceback.
As far as the broken images are concerned, its the cairocffi package that handles the font and the image rendering. The traceback at the above URL should show that the cairocffi package is missing. You should install cairocffi with all the dependencies resolved.
pip install cairocffi will do the job.
This the Github page for cairocffi.
I'm attempting to use jade in meteor with this package https://github.com/SimonDegraeve/meteor-jade-handlebars
I'm on a windows machine. I've so far managed to use most meteorite packages by following the instructions here (www.discovermeteor.com/2013/03/20/using-meteor-and-atmopshere-on-windows/)
When i run 'meteor' on my project with .jade files, I'm getting this error:
While building the application:
client\todos.jade: Jade compiler error: Cannot read property 'length' of undefin
ed
=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)?
I tried to use this new fork too -> https://github.com/kynan/meteor-jade-handlebars/tree/refactor-for-meteor-0.6.5
Same problem.
I further tested this in a Linux machine and it works perfectly. I have no idea why this is failing with the above mention error on windows.
Try adding a blank extra line to the end of your file. For example, an extra line would be needed here.
template(name="name")
h1 Hello!
I've been dealing with a lot of problems getting jade-templating to work with meteor, but finally got it to work.. Here's how:
Add this to smart.json, belt-jade-handlebars is jade for newer versions of meteor:
"packages": {
"belt-jade-handlebars": {}
}
Add this to .meteor/packages:
belt-jade-handlebars
And finally add the extra blank line to all *.jade files. ( suggested by user3064375 )
Start the app by using:
$ meteor run --release template-engine-preview-3
This will use the latest template engine and start meteor.
I started playing with OpenCPU a couple of weeks back and am getting hooked to it. I was able to succesfully install the "knitr" and "opencpu.demo" apps. The issue I am running into is when I try to invoke the R functions I packaged under a new r package and call it from within knitr-app. I get a message saying no such package exists. I ran installed.packages(lib.loc="/usr/lib/R/library") from an R shell and from knitr-app interface and indeed my packages shows up in the former but not in the latter case. No idea whats going on here ! Will greatly appreciate if anyone can answer this.
omments:
when i run find.package("DummyPkg") through the /R/pub/base/identity/json API , I do get back
[
"/usr/lib/R/library/DummyPkg"
]
However the same query from within knitr-app webpage returns:
# write R code here
find.package("DummyPkg")
## Error: there is no package called 'DummyPkg'
The default html page for knitr app has links to opencpu.org server, so the POST was going to public server instead of going to my server, no wonder my packages weren't showing up !
Comments:
when i run find.package("DummyPkg") through the /R/pub/base/identity/json API , I do get back
[
"/usr/lib/R/library/DummyPkg"
]
However the same query from within knitr-app webpage returns: