How to install Jupyter extensions on Azure Machine Learning Notebooks? - azure

I created a virtual machine on Azure Machine Learning and I'm running a simple jupyter notebook. I would like to install the jupyter extensions since I really need the collapsible titles but it seem it isn't working. I tried with pip install and it's already installed but the menu does not appear...

There are some good JupyterLab extensions out there, and if you want to use them in AML Compute Instances JupyterLab. Foremost the Table of Contents extension which can be a great help with larger notebooks.

Related

ipywidgets working in JupyterLab but do not appear in Voila

Ok, this is my first post.
I've been working on building a dashboard for my students, to let them work with economic models interactively. I've used JupyterLab for years and have some experience with ipywidgets. Recently while looking for a way to make my code shareable I ran into Voila, which seems like an excellent way to dashboard directly from a notebook.
Here's the problem I'm running into: I have widgets running just fine in JupyterLab but when I render them with Voila (both the extension and from the cli) the widgets do not appear. I tried using a few other packages: ipyleaflet does not appear either, but plotly and pandas printouts do.
I haven't been able to find similar cases so any help would be appreciated.
And for context, I'm running the latest version of JupyterLab on Zorin OS, and have reproduced the issue in Chrome and Firefox, with both Jupyter Lab and Notebook.

Why am I getting "The resource was not found" when I target turicreate visualization to 'browser'?

First of all, I'm new to turicreate and ubuntu. I'm running turicreate on windows 10 by enabling windows subsystem for Linux. I used Ubuntu 18.04 LTS to install python, turicreate, and jupyter notebook. I cannot enable the visualization of the data on another tab of my browser. Here is the code.
import turicreate
sf = turicreate.SFrame('people-example.csv')
turicreate.visualization.set_target(target='browser')
sf.show()
By running this, it gives output that says, "Materializing SFrame" and pops up another tab that goes like this, "The resource '/index.html?type=plot&id=e64f3efd-aa42-4a70-bde6-a1541f70b35f' was not found."
But when I use the default target or "turicreate.visualization.set_target(target='auto')" it shows the data on jupyter notebook without any delay. So, how can I enable the visualization target to 'browser'? Thanks in advance for any suggestions.

ICP4D - Installed but not able to create new project

I have installed the ICP4D, IBM Cloud Pak For data, on an Openshft cluster with a master, infra and 2 worker nodes.
What I do not see is the Project menu? What could be wrong?
And how do I correct it? Screen shot attached below:
Thanks,
CS
It looks like you have installed the base product, but not the add-ons you are interested in. The components of CP4D are available to be installed on top of the base, and will enable the various menu options as you add them.
For example, you might want to install the Watson Studio Local, Watson Machine Learning, and Jupyter Notebook add-ons to get started with open source data science and Python.
You can browse the available add-ons by clicking the squares icon in the top right.
In that menu you can browse to see what you have installed, and what are available (included in CP4D), and what are Premium (additional purchased functionality).
See additional details on installing Watson Studio Local (for example), here; https://www.ibm.com/support/producthub/icpdata/docs/content/SSQNUZ_current/wsj/install/install-ws.html
Let me know if this helps.

pygame running very slowly 12fps - Upgraded laptop

I'm relatively new to using python have used pygame as a place to better understand how everything comes together.
I recently upgraded my laptop form a 2012 Macbook to the 2019.
Just wondering why the games I made on my 2012 are running soo much slower on my 2019 macbook. Managing packages with conda.
I don't know much but I suspect it may have to do with either
The comp resolution upgrade (which I'm doubtful)
method of installation of pygame
Initially, I Downloaded python3 with homebrew and then installed pygame (pygame would show a blank screen)
I then installed conda and managed packages through it.
I doubt it has to do with the way I have written it, I'm sure it's quite inefficient but I was achieving fps's of 60 for the same code.
If someone could guide me to where to find out more information It would be greatly appreciated.
Cheers.
This seems to be a problem with how MacOS run Pygame. While your game is running, right-click it's icon in the Dock and select Show in Finder. Then in the Folder that shows up, you will see the Python Interpreter executable. Right-click it and click Get Info, and under General check the Open in Low Resolution.
Now your game should run fine. And no, Pygame's resolution will not be "Low".
I resolved this issue by launching pygame in fullscreen. More of a workaround but a solution nonetheless.
Also if you do choose to do this be sure to create a key to exit the screen otherwise you'll need to restart your computer.

(mac) Can I run Microsoft Edge in Selenium without having the browser installed on my pc?

I'm woking on a selendium and airflow project for bing rewards and I'm hoping I don't have to install Microsoft edge as my computer is always running out of space. Does anyone know off hand if it's possible to make Selenium scripts for a driver if you dont have the dmg installed on your computer?
yes you can do that using RemoteWebDriver.
but make sure your remote device, cloud etc must have that respective browser which is pointed by RemoteWebDriver.
Refer below:
https://github.com/SeleniumHQ/selenium/wiki/RemoteWebDriver
Example code:
https://gist.github.com/djangofan/4127074

Resources