jupyter-notebook

Long running Jupyter notebook/lab?

允我心安 提交于 2020-07-05 08:08:32
问题 I have Jupyter running in a tmux session on an ec2 instance. I have very long-running cells, but when I close my browser or laptop lid, the notebook no longer writes output cells (and may crash the python kernel). This is how I launch labs on my remote instance: jupyter lab --ip=0.0.0.0 --port=5002 --no-browser --allow-root I'm looking for a solution to run a notebook indefinitely without losing data and without having to keep my local computer on. I don't want to use a VNC or X-windows

(Python) psycopg2 installation

大兔子大兔子 提交于 2020-07-04 01:49:08
问题 I have a fairly light amount of experience with Python and got stuck on what should be a pretty simple issue. I am using Jupyter Notebook on a Mac. I wanted to install psycopg2 in Python so I typed in import psycopg2 as pg2 But, I got the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-32fa0c891bdd> in <module> ----> 1 import psycopg2 as pg2 ModuleNotFoundError: No module named 'psycopg2' I then went over to the terminal and typed in: pip install

(Python) psycopg2 installation

时间秒杀一切 提交于 2020-07-04 01:49:05
问题 I have a fairly light amount of experience with Python and got stuck on what should be a pretty simple issue. I am using Jupyter Notebook on a Mac. I wanted to install psycopg2 in Python so I typed in import psycopg2 as pg2 But, I got the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-32fa0c891bdd> in <module> ----> 1 import psycopg2 as pg2 ModuleNotFoundError: No module named 'psycopg2' I then went over to the terminal and typed in: pip install

Jupyter / Colab : Play sound with any error in any cell + Play sound after completing long running cells

隐身守侯 提交于 2020-07-03 09:35:20
问题 Sometimes an error happens but I don't notice because I may be running multiple cells at one. I'd like errors to play a sound. Many people would like long running cells to play a sound when completed. 回答1: I mixed the solutions I found in some places 1 2 3 4 a) Create a global exception handler that beeps on errors b) Create a simple function that you place at the end of the long-running cell (some other approaches on links) You can change the sounds to anything you like. Note: The sounds

What's the difference between df.head() and df.head?

眉间皱痕 提交于 2020-07-03 05:44:15
问题 In Jupyter Notebook or terminal, both df.head and df.head() can return an output of the dataframe, with some minor differences. What's the fundamental difference between the two different expressions and what role does parenthesis play in Python in general? Thanks! >>>df.head <bound method NDFrame.head of Date Open High Low Close Volume 0 1-Jun-17 153.17 153.33 152.22 153.18 16404088 1 2-Jun-17 153.58 155.45 152.89 155.45 27770715 2 5-Jun-17 154.34 154.45 153.46 153.93 25331662 3 6-Jun-17 153

What's the difference between df.head() and df.head?

杀马特。学长 韩版系。学妹 提交于 2020-07-03 05:44:10
问题 In Jupyter Notebook or terminal, both df.head and df.head() can return an output of the dataframe, with some minor differences. What's the fundamental difference between the two different expressions and what role does parenthesis play in Python in general? Thanks! >>>df.head <bound method NDFrame.head of Date Open High Low Close Volume 0 1-Jun-17 153.17 153.33 152.22 153.18 16404088 1 2-Jun-17 153.58 155.45 152.89 155.45 27770715 2 5-Jun-17 154.34 154.45 153.46 153.93 25331662 3 6-Jun-17 153

Install python packages on Jupyter Notebook

一个人想着一个人 提交于 2020-06-29 06:04:30
问题 I am trying to install 2 python packages on Anaconda Jupyter Notebook. The links to the python packages are as follow: 1) https://iapws.readthedocs.io/en/latest/modules.html 2) https://pythonhosted.org/thermopy/iapws.html#module-thermopy.iapws But I am getting the following error on both installations. Can anyone tell me what is wrong? 回答1: Your Jupyter notebook server does not have access to internet. You operating system might have a firewall or limit internet access to third party

Troubles with installing jupyter in pycharm

独自空忆成欢 提交于 2020-06-29 03:47:15
问题 trying to install jupyter. I tryied writing pip install jupyter in terminal. Tryied doing it through settings, tryied clicking notification that jupyter is not installed but I keep getting same error that in the end says: Could not find a version that satisfies the requirement pywin32>=1.0; sys_platform == "win32" (from jupyter-core>=4.6.0->notebook->jupyter) (from versions: ) No matching distribution found for pywin32>=1.0; sys_platform == "win32" (from jupyter-core>=4.6.0->notebook->jupyter

OSMnx wont open in Juypter Notebook

徘徊边缘 提交于 2020-06-29 03:39:13
问题 I downloaded osmnx via conda using the code: conda config --prepend channels conda-forge conda create -n ox --strict-channel-priority osmnx This comes from the osmnx documentation: https://osmnx.readthedocs.io/en/stable/ I can see the module has downloaded because in the Anaconda Prompt I can type conda activate ox and it works. However when I go into my jupyter notebook and type import osmnx as ox I get the following error: ​ ------------------------------------------------------------------

Jupyter Notebook's RISE Missing Slideshow Button

孤街醉人 提交于 2020-06-28 07:53:00
问题 I followed the instructions on installing RISE for Jupyter notebook with Anaconda (conda) but the "Enter/Exit RISE Slideshow" button never showed in the toolbar. I followed the recommendations on solving the problem in the two closed RISE issues (#137, #275), but with no luck. I updated Jupyter to the latest version, started a new notebook, hard refreshed the browser page, reinstalled Rise and still no button. I also saw this SO question, which is different from my case since I never saw the