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...

Make turtle graphics inline

I have been using turtle package in python idle. Now I have switched to using Jupyter notebook. How can I make turtle inline instead of opening a separate graphic screen. I am totally clueless...

How do I use a new ipython kernel in Atom?

I created a data_science kernel for ipython by using the following commands: python -m ipykernel install --user --name data_science --display-name "Python (Data Science)" This creates a kernel...

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...

`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?

Google Colab is very slow compared to my PC

I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got here. Then I pasted my code to...

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...

How to combine plot of two GPy models?

I have calculated two GP regression models and would like to have them plotted in the same figure. Model 1 kernel = GPy.kern.RBF(input_dim=1, variance=.1, lengthscale=1.) m1 =...

Turtle does not run more than once in jupyter notebook

I am trying to run some turtle code in jupyter notebook. When I run the code once, the code runs fine. However, if I run the code again, Python Turtle Graphics freezes and closes (aka python...

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...

Can't run turtle on jupyter notebook (turtle graphic window not responding)

First Question I was doing an example from ThinkPython 2e Chapter 4 Case Study: Interface Design, when I stumbled upon turtle module. I use jupyter notebook as an IDE to do exercise. Here's the...

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...

This application failed to start because no Qt platform plugin could be initialized

I am new to programming and I am stuck trying to run a very simple Python script, getting this error: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in "" This application failed to...

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

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...

How to plot the boxplot of the columns in one loop?

I have the following columns in a data-frame df: columns = ['temperature','humidity' ,'pressure','rain' ,'lightavgw/o0' ,'lightmax','moisture'] What I want is to create a loop where I can plot...

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...

importing jax fails on mac with m1 chip

For python 3.8.8 and using the new mac air (with the m1 chip), in jupyter notebooks and in python terminal, import jax raises this error Python 3.8.8 (default, Apr 13 2021, 12:59:45) [Clang 10.0.0...

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], ...

Pylint error 'R0903: Too few public methods' and class definition style

Look at the following code: 1 class MySuperClass(): 2 pass 3 4 5 class MySuperClass(MySuperClass): 6 def method_one(self, x): 7 (do something) 8 9 10 class...

Module 'keras.optimizers' has no attribute 'SGD'. Google Collab

I have notebook created on Google Collab. For work I need some functions of keras library. I imported them from tensorflow import keras from keras.models import Sequential from keras.layers...