jupyter-notebook

How to remove password for Jupyter Notebooks and set token again

老子叫甜甜 提交于 2019-12-21 03:42:55
问题 I need to do this for Pycharm. Here are the steps that I did which I'm not able to undo. I added a password for authentication using: $ jupyter notebook password I then used the below command to comment all the code in jupyter_notebook_config.py $ jupyter notebook --generate-config Then I removed the hashed password generated in the jupyter_notebook_config.json which now looks like this { "NotebookApp": { "password": "" } } I then did the following changes in jupyter_notebook_config.py file c

Jupyter Lab - launches but don't see any tabs (look/feel is 100% different than seen in youtube videos)

孤者浪人 提交于 2019-12-21 03:12:08
问题 I have jupyter notebook version 4.2 on my MacOS (10.9.5) I launch via jupyter lab at the MacOS terminal and it automatically opens a browser at the following link: http://localhost:8888/lab At this point I see the Welcome to the JupyterLab Alpha preview screen but nothing more. No tabs etc. Please see the image I have included. I am using Chromium ( Version 43.0.2357.130 (64-bit) ). When I try to open in Safari browser absolutely nothing loads. Its a blank browser session. What I see in the

Configure the backend of Ipython to use retina display mode with code

旧城冷巷雨未停 提交于 2019-12-21 02:14:08
问题 I am using code to configure Jupyter notebooks because I have a repo with plenty of notebooks and want to keep style consistency across all without having to write lengthy setting at the start of each. This way, what I do is having a method to configure the CSS, one to set up Matplotlib and one to configure Ipython. The reasons I configure my notebooks this way rather than relying on a configuration file as per docs are two: I am sharing this repo of notebooks publicly and I want all my

Scale plot size of Matplotlib Plots in Jupyter Notebooks

感情迁移 提交于 2019-12-20 18:31:51
问题 Is there a possibility to scale the plot size of matplotlib plots in jupyter notebooks? You could increase the plot size by changing the default values of figure.figsize , but this does not affect parameters like fontsize, linewidth, markersize etc. What I need is a plot where all the parameters are scaled accordingly. P.S.: To display plots in jupyter notebooks I use %matplotlib inline , see screenshot below. Edit For completeness, here is a code snippet doing exactly what I needed: def

How to disable auto-quotes and auto-brackets in Jupyter 5.0

扶醉桌前 提交于 2019-12-20 18:01:47
问题 I upgraded Jupyter to the latest vesion, 5.0, and it looks like my front-end configuration stopped working. I don't understand why Jupyter comes with auto closing quotes and brackets by default, which I find pretty annoying. So, at each version I have to change the settings to disable it. It used to work by creating a file ~/.jupyter/custom/custom.js and adding the next JavaScript code: require(['notebook/js/codecell'], function (codecell) { codecell.CodeCell.options_default.cm_config

How to disable auto-quotes and auto-brackets in Jupyter 5.0

萝らか妹 提交于 2019-12-20 18:01:05
问题 I upgraded Jupyter to the latest vesion, 5.0, and it looks like my front-end configuration stopped working. I don't understand why Jupyter comes with auto closing quotes and brackets by default, which I find pretty annoying. So, at each version I have to change the settings to disable it. It used to work by creating a file ~/.jupyter/custom/custom.js and adding the next JavaScript code: require(['notebook/js/codecell'], function (codecell) { codecell.CodeCell.options_default.cm_config

Jupyter notebook not trusted

折月煮酒 提交于 2019-12-20 17:33:03
问题 I am using Anaconda to work on a Jupyter notebook which displays "Not Trusted" (see on screenshot below). What does it mean? Is it a problem? How can I solve it? 回答1: It is a security feature to disable the execution of arbitrary code from untrusted notebooks, without the user's consent. There is a doc page on that http://jupyter-notebook.readthedocs.io/en/latest/security.html It won't prevent you from manually running the code, that's actually one way of "trusting" the outputs. 回答2: You can

Work with Jupyter on Windows and Apache Toree Kernel for Spark compatibility

别说谁变了你拦得住时间么 提交于 2019-12-20 12:40:10
问题 I´m trying to install Apache Toree kernel for spark compatibility and I´m running into a strange environmental message. This is the process I followed: Install last Anaconda Version with Jupyter 4.1.0 Run: pip install --pre toree Run: jupyter toree install --interpreters=PySpark,SparkR,Scala,SQL Only really interested in Scala Kernel, but I installed all interpreters. The OS is windows 7 and there is no choice to use virtual machines or linux. This is the kernel.json file that I modified to

How to download all files and folder hierarchy from Jupyter Notebook?

不问归期 提交于 2019-12-20 10:58:00
问题 If I want to download all of the files and folder hierarchy from Jupyter Notebook as shown in the picture, do you know if there is anyway to do that by simple click other than go to every single file in every folder to open the file and click download hundreds of times? Note: This Jupyter Notebook is created by the online course teacher, so it's not opened from my local Acaconda app but the online course webpage instead. Downloading is for future memory refreshing whenever needed. 回答1: import

Choose SQL as default cell magics for Jupyter Notebook

浪子不回头ぞ 提交于 2019-12-20 10:37:29
问题 I'm writing a Jupyter notebook for a database course; most cells will contain SQL code, for which I use the IPython SQL magic. Currently I have to prepend each cell with %%sql . Is there a way to avoid typing %%sql before each cell, by making it the default? I found a related question at How do I set up default cell magics for every ipython notebook cell?. However, I couldn't find a SQL kernel for Jupyter. 回答1: The Jupyter docs tell you how you can edit the CodeMirror settings. CodeMirror has