Both ipython widgets and interactive objects have observe() methods. (See the results of the print statements.) With the following example, I can confirm the actions of the observe() method on a slider widget but not on the interactive (ie) object. Q: Is there any way to use the interactive’s observe method or I have to call separate observe() method on
Tag: jupyter
Get current jupyter-lab notebook name [for Jupyter-lab version 2.1 and 3.0.1 and notebook version >6.0.3)
Problem Hi all, As my title suggested it, I would like to get access to the notebook name (in jupyter-lab) as a variable. So I could reuse it in the notebook itself (for example to name some figure files generated in the notebook). I saw that a similar issue was opened years ago [see here]. However I didnt find a
What is Right extension for Plotly in JupyterLab?
Plotly is not working in Jupyterlab. I assume that there is a conflict in required extensions but I’m not sure. On checking troubleshooting on Plotly https://plotly.com/python/troubleshooting/ , they advise to remove extensions and install them again. But I found that there is additional extension that came with Jupyterlab update called ‘jupyterlab-plotly-extension’ which is not mentioned by Plotly in their instructions
Jupyter Notebook: Force cookie expiration and reset token
How can I remove access to a Jupyter Notebook server to previous users? I did a quick setup of a Jupyter Notebook server and provided access to a few users. Now that it’s no longer needed, how can I force the authentication cookies to expire and reset the authentication token? I think I should have used JupyterHub, but I didn’t
How to play video on google colab with opencv?
I am working on a project related to object detection using Mask RCNN on google colab. I have a video uploaded to my colab. I want to display it as a video while processing it at the runtime using openCV. I want to do what cv2.VideoCapture(‘FILE_NAME’) does on the local machine. Is there any way to do it? Answer Found
How to create sparkmagic session automatically (without having to manually interact with widget user-interface)?
I am using sparkmagic to connect Jupyter notebooks to a remote spark cluster via Livy. The way it is now, I need to execute a notebook cell to bring up the %manage_spark user-interface widget, and manually select the language and click “create-session” in order to establish the spark context for the notebook. Is there a way to automatically generate the
Display pandas dataframe using custom style inside function in IPython
In a jupyter notebook, I have a function which prepares the input features and targets matrices for a tensorflow model. Inside this function, I would like to display a correlation matrix with a background gradient to better see the strongly correlated features. This answer shows how to do that exactly how I want to do it. The problem is that
How to run a single line or selected code in a Jupyter Notebook or JupyterLab cell?
In both JupyterLab and Jupyter Notebook you can execute a cell using ctrl + Enter: Code: Cell and output: But how can you run only line 2? Or even a selection of lines within a cell without running the entire cell? Sure you could just insert a cell with that single line or selection of lines, but that gets really
Running Jupyter Notebook from cmd raises ModuleNotFoundError: No module named pysqlite2
The problem: After reinstalling Anaconda I can no longer navigate to a folder using the command window where I’ve got some .pynb files, type jupyter notebook and get things up and running. I’m getting these errors: C:scriptsnotebooks>jupyter notebook Traceback (most recent call last): File “C:UsersMYUSERIDAppDataLocalContinuumanaconda3libsite-packagesnotebookservicessessionssessionmanager.py”, line 10, in import sqlite3 File “C:UsersMYUSERIDAppDataLocalContinuumanaconda3libsqlite3__init__.py”, line 23, in from sqlite3.dbapi2 import * File
Anaconda-Jupyter Doesn’t open in browser
I installed Anaconda 3.7 on UbuntuĀ 18.04 (Bionic Beaver). Installation was successful. When I tried to start Jupyter Notebook from navigator it throws the following error. Access to the file was denied The file at file:///run/user/1000/jupyter/nbserver-26395-open.html is not readable. It may have been removed, moved or file permissions may be preventing access. Answer I think you have changed your default browser