How do I output lists as a table in Jupyter notebook?

I know that I've seen some example somewhere before but for the life of me I cannot find it when googling around. I have some rows of data: data = [[1,2,3], [4,5,6], [7,8,9], ...

How to disable password request for a Jupyter notebook session?

I have been launching Jupyter Notebook for years using the following command: jupyter-notebook --port=7000 --no-browser --no-mathjax When I try to open the jupyter on the browser it ask me for a...

Resize the image in jupyter notebook using markdown

I want to add the image in the Jupyter notebook and I want to have particular height and width. When I try to add the image using ![](img.png) the code is adding the complete image but as per...

Download data from a jupyter server

I'm using ipython notebook by connecting to a server I don't know how to download a thing (data frame, .csv file,... for example) programatically to my local computer. Because I can't specific...

Package develop mode avoid jupyter kernel restart

I am working on a python package as a developper. The package is stored in a git repo and I use a local branch to debug/fix functionnalities of this package. To test the corrections I make to the...

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

I'm trying to learn Machine Learning, but I cannot resolve below error. [My environment] Mac High Sierra 10.13.2 Python3.4.5 Numpy1.13.3 [Command] $ python3 -c "import jupyter, matplotlib,...

`jupyterlab` doesn't recognize `nodejs` and `npm` installations

I'm having troubles installing the jupyterlab_bokeh extension. $ jupyter labextension install jupyterlab_bokeh Errored, use --debug for full output: ValueError: Please install nodejs and npm...

How to recover deleted Jupyter notebook cell?

I use Jupyter notebook. I accidentally deleted a cell, and I can't go step back. How can I recover the notebook cell?

Is there a way to disable saving to checkpoints for Jupyter Notebooks?

I am working in an environment where writing to the disk space with a folder name like .ipynb_checkpoints is disallowed. Unfortunately, this is Jupyter Notebook's default path for Save and...

GIN Index has O(N^2) complexity for array overlap operator?

I ran into an issue with using the && array operator on a GIN index of mine. Basically I have a query that looks like this: SELECT * FROM example WHERE keys && ARRAY[1,2,3,...] This works fine...

Cannot get IRkernel::installspec() to work, jupyter-client not visible

I am still in progress to get Jupyter-Notebook and R working together on Windows 10 machine. After solving the problem with install_github() I am now facing just another issue. I am still...

How to display python variable values in VS Code Python Interactive pane markdown cell output

How can I display the value (as a string) of a python variable in the markdown cell output in the Python Interactive pane of VS Code's MS Python extension? For a variable var, using #%% from...

scipy.optimize.minimize does not stop at maxiter or callback

I've implemented scipy.optimize.minimize to minimize the mean of delta values of a pandas data frame for a 1D Array with 128 values. It seems to run and do stuff, but it doesn't stop at maxiter or...

Can't access jupyter notebook from docker

I am trying to run a jupyter notebook created in Docker. Firstly I run a container: docker run -p 8888:8888 jupyter/tensorflow-notebook What I get is: [I 19:44:47.140 NotebookApp] Writing...

Keep Jupyter notebook running with Macbook closed

As simple as the title: Are there ways to keep jupyter notebook cells running with a closed laptop? Sometimes I need to run to a meeting or leave the office and I have to close my laptop. I'd love...

ValueError while deploying tensorflow model to Amazon SageMaker

I want to deploy my trained tensorflow model to the amazon sagemaker, I am following the official guide here:...

How to run a shell script in Jupyter Notebook?

So I have this shell script that runs a program that I'll be using in Jupyter, but is bash-oriented, and I tried using the subprocess module,and I get the error: OSError: [Errno 13] Permission...

Problem importing (and installing) NumPy in Jupyter Notebook

I am having major trouble right now trying to use numpy in my jupyter notebook. When I first tried to simply "import numpy", it came back with the error: "ModuleNotFoundError: No module named...

img scr showing invalid syntax in jupyter notebook

<img src="C:/Users/INTEX/Desktop/python_env/tulips.jpg"/> output-File "", line 1 ^ SyntaxError: invalid syntax

Conda not recognizing that I have node installed?

I open the terminal. jupyter labextension install @jupyterlab/github An error occured. ValueError: Please install nodejs >=10.0.0 before continuing. nodejs may be installed using conda or directly...

How to open spark web ui while running pyspark code in pycharm?

I am running pyspark program in pycharm local on windows 10 machine . I want to open spark web ui to monitor job and understand metrics showed over spark web ui . While running same code on...

Build failed with 500, please run 'jupyter lab build' on the server for full output in Jupyter lab

I am trying to add an extension in the jupyter lab. I go to extensions tab and click "install" on the extension. After a few seconds i get a pop up saying Build failed with 500, please run...

WSL-2: Which ports are automatically forwarded?

I've been tinkering around with WSL-2 for a while now and don't exactly understand how traffic is routed between the host and WSL-2 dist. In some sources it seems like all ports used by WSL-2...

TypeError: Could not build a TypeSpec with type KerasTensor

I am a newbie to deep learning so while I am trying to build a Masked R-CNN model for training my Custom Dataset I am getting an error which reads: TypeError: Could not build a TypeSpec for...

PyCharm Plotting Issue "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)"

Within PyCharm (Versions 2020.3) I'm unable to show any plots and I get an error. I've tried following other recommendations of going into PyCharm settings and unselecting "PyQt" as well as...

pdfminer - extract text behind LTFigure object

I am extracting text from pdf files using python pdfminer library (see docs). However, pdfminer seems unable to extract all texts in some files and extracts LTFigure object instead. Assuming from...

getting strange error while importing pycaret

i have installed pycaret in virtual env in jupyter, using pip3 install pycaret. but when am trying to import it as from pycaret.regression import* or from pycaret import classification am...

Cannot pip install mediapipe on Macos M1

Hello fellows I'm using mac air with M1 chip My env sets like (CV) san  ~/work/python  conda list # packages in environment at /Users/san/miniforge3/envs/CV: # # Name ...

install dtaidistance -> Exception: The compiled dtaidistance C library is not available

I try to run dtaidistance but when running the following code according example : from dtaidistance import dtw import numpy as np timeseries = np.array([ [0., 0, 1, 2, 1, 0, 1, 0, 0], ...

How to add a checkbox in pandas dataframe

I have created a dataframe as: import pandas as pd data = [['Ankit'], ['Akshat' ]] df = pd.DataFrame(data, columns = ['Name']) Now, I want to insert a column PPA which has checkbox button as...