jupyter-notebook

unable to open jupyter(ipython) notebook on browser

无人久伴 提交于 2019-12-08 17:28:17
问题 I'm using python3.5 and jupyter 4.0.6 . I launched the jupyter notebook , and get the following output: [I 21:47:27.021 NotebookApp] Serving notebooks from local directory: /home/nitrous [I 21:47:27.021 NotebookApp] 0 active kernels [I 21:47:27.021 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/ [I 21:47:27.022 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [W 21:47:27.023 NotebookApp] No web browser found: could

Make cell output in Jupyter notebook scroll horizontally?

六月ゝ 毕业季﹏ 提交于 2019-12-08 16:38:20
问题 I have a long Sympy expression that I'd like to get printed with a horizontal scrollbar beneath it. Is it possible to do so in Jupyter? I'm able to toggle vertical scrolling but I want it to be horizontally scrollable instead. The problem with vertical scrolling is that the output of sympy.pretty_print() gets badly distorted in my case. The output also looks ugly and the user has to scroll through the whole output unnecessarily. 回答1: Something similar to the np.set_printoptions(linewidth=some

jupyter input,display, print excute order is chaotic

社会主义新天地 提交于 2019-12-08 12:48:03
问题 I'am using jupyter and my python version is 3.5. In a while loop, excute order is not correct, input statement is before print statement. This is my code. from IPython.display import display import pandas as pd df = pd.DataFrame({'a':[1,2],'b':[3,4]}) while(True): a = input("please input:\n") display(df.head()) print (a) The excute result is 回答1: I was able to reproduce the behavior under Chrome 63 on OSX. I added several more consecutive print(a) statements and where the input field ends up

Table of Contents disappeared in Jupyter Notebook

一笑奈何 提交于 2019-12-08 10:42:15
问题 Currently, a jupyter notebook does not show the lateral table of contents. All the other notebooks do. In fact, for that notebook under menu->edit the nbextensions config disappeared, so, it looks like that notebook does not load the extension. My jupyter version is 4.4.0. How to fix that notebook? 回答1: Apparently, all it needs is to shutdown the notebook. After restarting it, all works fine. I suppose that problem happens when the notebook has been closed wrongly without the proper "close

Jupyter notebook server not working with latest PyCharm 2017.2 update. How do I solve this?

£可爱£侵袭症+ 提交于 2019-12-08 08:45:44
问题 So I received an update for PyCharm yesterday which has botched my Jupyter Notebook integration. Every time I try to run a jupyter notebook cell, I get hit with this prompt: http://localhost:8888/?token= I run jupyter notebook list in the terminal to get list of running jupyter servers and its accompanying authenticating token. Even after entering this info into the earlier prompt, the cell refuses to run and returns with the token prompt again. According to Using IPython/Jupyter Notebook

Can't reach Jupyter Notebooks on Azure Deep Learning Virtual Machine

牧云@^-^@ 提交于 2019-12-08 08:05:51
问题 I followed the instructions here. I am on the Ubuntu VM via SSH. I tried to access IP:8000 but Chrome says the Site can't be reached. Port 8000 is indeed open by default as mentioned in the docs. Instructions don't mention if I have to start jupyterhub so I tried that and got this error - username@fastai:~ $ jupyterhub [I 2018-04-02 00:25:41.018 JupyterHub app:871] Writing cookie_secret to /home/username/jupyterhub_cookie_secret [I 2018-04-02 00:25:41.036 alembic.runtime.migration migration

How do I start jupyter notebook from command-line to run in my current directory, without editing config files or passing hard paths?

隐身守侯 提交于 2019-12-08 07:55:14
问题 Juypter notebook currently has a limitation: Starting terminal in current directory How do I do this from command-line (no Anaconda or other GUI), without the following unacceptable hacky approaches? (and in particular where the notebook directory might well change between invocations, or between users?) Manually edit the hard path into your jupyter notebook config file, in the c.NotebookApp.notebook_dir parameter Embed hard paths into your notebook code. Must be absolute paths. (yukky). Also

Run Pyspark and Kafka in Jupyter Notebook

筅森魡賤 提交于 2019-12-08 07:45:02
问题 I could run this example in the terminal. My terminal command is: bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.0 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py localhost:9092 subscribe test Now I wants to run it in Juypter python notebook. I tried to follow this (I could run the code in the link). But in my case, it failed. The following is my code: import os os.environ['PYSPARK_SUBMIT_ARGS'] = "--packages org.apache.spark:spark-sql-kafka-0

two factor authentication with username and password for a Jupyter Notebook server

♀尐吖头ヾ 提交于 2019-12-08 06:09:27
问题 I've setup a Jupyter Notebook server with appropriate password and SSL so it is accessed via HTTPS. However, I'm looking now for a way to enforce a two factor authentication with username and password for loging in. The current Jupyter Notebook server only asks for a password and I hence have to create a shared one (no username though). I know about JupyterHub, but at the moment I'm looking for a way to add a username (or multiple usernames) and correspond password (passwords), so that

Jupyter: Seaborn pairplot difficult to set graph dimensions for?

╄→гoц情女王★ 提交于 2019-12-08 05:11:10
问题 I was trying to create a bivariate scatterplot of each variable against every other that are in a dataframe, and I found sns.pairplot() was exactly what I needed. However, no matter what I do (and I have tried all of the advice found in this question), the plots keep coming out too spread out , as well as in general too big. In the picture below, only the first two rows and four columns out of 12 variables display on my entire screen. I have found out that my use of %config InlineBackend