Is it possible to use Jupyter Widgets in Google Colaboratory?
I followed the instructions here, both with ipyleaflet and bqplot
But I got this error message.
Failed to display Jupyter Widget of type Map.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
Is it possible to use these widgets? Or did I make a mistake somewhere?
Now Google Colab has its set of Widgets. See the example here.
https://colab.research.google.com/notebooks/widgets.ipynb
I haven’t compared how diffrent are they from normal Jupyter Widgets, though.
Update Feb'19
ipywidgets are supported now. You can test run
the tutorials.
It is not currently possible to use them- currently comms messages are not supported, the WidgetManager code is not loaded into outputframes, and multiple output frames on a page is not a configuration that the WidgetManager works with.
Feel free to open a bug at https://github.com/googlecolab/colabtools/issues
some libraries widgets do work including for Bokeh which has a map plotting function which you can use instead of ipyleaflet if you are wishing to use Map Visualisations in Colab:
https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/charts.ipynb&scrollTo=vlOIt0zZ5uCz
You can then use their mapping function:
http://docs.bokeh.org/en/latest/docs/user_guide/geo.html
Make sure you include:
from bokeh.io import output_notebook
output_notebook()
Related
I am "refactoring" and improving some lines of code in a forked GitHub project (a Qt calculator), using the Qt-Creator IDE;
Therefore, I need a "TO-DO plugin" (to highlight some comments, those I am going to put next to the changed lines of code).
Actually, I have already tried the Dmitry Savchenko's TO-DO plugin (it can be found and installed in Help -> About Plugins -> Utilities menu), however it doesn't work at all, such as it is not installed;
Just appears a "To-Do Entries" panel, next to the debugger console, that doesn't show anything up (even trying to write "TO-DO" at the beginning of some comments).
I would like to be able to switch rapidly from one section of my Jupyter notebook to another section, I mean within the same .ipynb file, as these files tend to get long while exploring data.
Ideally, this will be possible by marking the scrollbar of the navigator. I was thinking using a mozilla firefox add-ons, like "Scrollbar Search Highlighter" or "Content Scrollbar", but I didn't find a way to use them within the Jupyter notebook context.
Any idea to improve Jupyter notebook experience related to long page navigation?
Jupyter notebook extensions (link) come with the Table of Contents extension, which allows you to conveniently navigate over the various sections of your notebook
Make use of nbextensions. From there you can enable Table of contents which finally look like this:
Table of contents is built-in JupyterLab by default now:
https://jupyterlab.readthedocs.io/en/stable/user/toc.html
Also available as the structure tab of DataSpell and Pycharm:
https://www.jetbrains.com/help/dataspell/guided-tour-around-the-user-interface.html#tool-windows
I am using Qt4.8 Windows version to develope an application to stream video using libvlc 2.2.1. When I use libvlc_media_player_set_hwnd() to render the video on my QWidget, its rather creating a separate window to display the video.
libvlc_media_player_set_hwnd(m_player, (void*)videoWidget->winId());
I have tried all versions of libvlc and all the examples related to libvlc with Qt. Also followed the steps given in https://wiki.videolan.org/LibVLC_SampleCode_Qt/
But I am not sure if I m missing anything.
It looks like as if libvlc_media_player_set_hwnd() is not able to take the QWidget WinId and creating its own window. However the value of (void*)videoWidget->winId() seems to be a valid one. (I got the value as 0x65).
Please let me know if I am missing anything.
You need to make sure you are configuring your VLC instance correctly first, so that it uses the dummy interface, for example:
/* Load the VLC engine */
std::vector<const char*> options;
options.push_back("--intf=dummy");
return libvlc_new(int(options.size()), options.data());
Also, are you sure you are passing the handle to the correct widget to render on? Also, make sure to set some size on the parent widget, otherwise you may not see anything render at all. Finally, check what media options you are setting to your media player instance, you may be inadvertently telling it to render to generated window.
I've been able to get VLC to work in my own Qt application using the following example as a starting point, even though it is for VLC 1.X:
LibVLC SampleCode Qt - VideoLAN Wiki
None of the other questions regarding this question were able to answer this. I am new to programming, and I am just trying to add a FacebookLogin option to the website.
I built all the Javascript they wanted, and there is no error there(I don't think). In the interest of saving time, and that I am working on multiple computers. I am going to post pictures of all the code. I have added excess using statements to try and get the reference.
http://imgur.com/a/2wCyf
If you need anymore information let me know. And I will edit this page.
it looks like you just have some simple issues to fix in your IDE/project. The below instructions are for Visual Studio, but can be slightly altered for other IDEs.
First, make sure you have a reference to the Facebook SDK for .NET (I'm assuming you're using Outercurve's library from the looks of it):
In Visual Studio, check in the Solution Explorer window, then expand the "References", and make sure you see it there.
If it's not there, right-click "References", then "Manage Nuget Packages". When the Packages screen pops up, ensure in the left-pane that you have "Online -> nuget.org" selected. In the top right of the Packages window, in the "Search Online" textbox, enter:
facebook sdk and press "enter". On my screen, it's the second search result. To ensure you have the correct one, ensure that the "Created by" field says "Outercurve Foundation" before you accept it. Once you know you have the right package, hit the "Install" button, and it will be added to your project.
Once you have verified you have the correct reference, if you are still having the issue, make sure you have a "using" statement in your class file, to ensure library types you are using are recognized. In this example, I believe that would be:
using Facebook;
From the images of code you provided, I didn't see that statement in there, so that may be the problem, if this is fact the library you are referencing.
I am new to this type of application but what I found that is:
Use Facebook.FacebookClient instead of FacebookClient.
I am trying to get the inner active add Api to work with QML. I have found this Nokia example: http://projects.developer.nokia.com/fifteenpuzzle on how to do it. I plan to just use the add widget they use in my own app but when I compile the app it gives this error: "'KErrNone' was not declared in this scope" on anything excpet Symbian and once it runs on Symbian the add area is just black and after a while I get this error: "AdBannerWidget::onNetworkError = "Error downloading http://cdn1.inner-active.mobi/mnt/InnerActive/Resources/USAGC/eng_pic.gif - server replied: Not Found"".
Please help I have no idea what could be causing this, it's probably something stupid but I really need help.
I also get a error while trying to design the qml because of it not being able to "import Analytics 1.0"
I do have a inner active account and I have tried it using my own tag they generated for me but it still doesn't work.
My name is Nirit and I'm a support manager at inneractive.
we just released our new Beta QML open-sourced project, it is now available on your Dashboard (the SDKs tab).
Please download the .zip file and take the time to read through our clear and concise documentation.
If you have any questions or comments, please don't hesitate to contact me.
Nirit (nirit#inner-active.com).
For the black widget and network error, I bet you have to register first with inneractive to get an actual account.
"KErrNone" seems indeed symbian only. Might be that the project is just no meant to compiled on desktop as such. You maybe would have to #ifdef Q_OS_SYMBIAN some parts of it.