jupyter-notebook

Python - Can't import Seaborn

最后都变了- 提交于 2021-02-06 13:54:01
问题 I'm running iPhyton Notebooks and I'm trying to import the Seaborn package. When I try to import it from the Terminal, it loads up fine, but when I import it through iPython Notebooks, it give me the following error. I have even tried to re-install Seaborn using both Conda and Pip inside iPython notebooks and still it wont work. Any idea why? Thanks. ImportError Traceback (most recent call last) <ipython-input-1-417274a1ae6c> in <module>() 1 get_ipython().system(u'conda install seaborn') 2

using jupyter notebook in pycharm - no such notebook dir

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-06 11:36:53
问题 I'm trying to use jupyter notebook from PyCharm 2016.1. I open a previously created iPython notebook, click in a cell with code, and run it. I get prompted to start jupyter notebook at the default url and click OK. Here are the error messages from the Run window: [C 13:04:23.979 NotebookApp] Bad config encountered during initialization: The Jupyter HTML Notebook. [C 13:04:23.979 NotebookApp] No such notebook dir: 'C:\\Users\\cb4\\Documents\\python' iPython Notebook is enabled in PyCharm with

using jupyter notebook in pycharm - no such notebook dir

拟墨画扇 提交于 2021-02-06 11:35:37
问题 I'm trying to use jupyter notebook from PyCharm 2016.1. I open a previously created iPython notebook, click in a cell with code, and run it. I get prompted to start jupyter notebook at the default url and click OK. Here are the error messages from the Run window: [C 13:04:23.979 NotebookApp] Bad config encountered during initialization: The Jupyter HTML Notebook. [C 13:04:23.979 NotebookApp] No such notebook dir: 'C:\\Users\\cb4\\Documents\\python' iPython Notebook is enabled in PyCharm with

dateutil 2.5.0 is the minimum required version

时光毁灭记忆、已成空白 提交于 2021-02-06 11:21:27
问题 I'm running the jupyter notebook (Enthought Canopy python distribution 2.7) on Mac OSX (v 10.13.6). When I try to import pandas (import pandas as pd), I am getting the complaint: ImportError: dateutil 2.5.0 is the minimum required version. I have these package versions: Canopy version 2.1.3.3542 (64 bit) jupyter version 1.0.0-25 pandas version 0.23.1-1 python_dateutil version 2.6.0-1 I'm not getting this complaint when I run with the Canopy Editor so it must be some jupyter compatibility

Toolbar not visible after setting jupyter notebook theme

扶醉桌前 提交于 2021-02-06 10:59:23
问题 The toolbar and notebook name does not show when I call and load the themes from the notebook. I can load the themes from notebook using a code but I am not sure how to use the switches like -T and -N for call to toolbar and notebook name. I have used the following in a code cell: from jupyterthemes import get_themes import jupyterthemes as jt from jupyterthemes.stylefx import set_nb_theme set_nb_theme('solarizedd') The theme changes but the toolbar and notebook name does not appear. Even

Toolbar not visible after setting jupyter notebook theme

旧城冷巷雨未停 提交于 2021-02-06 10:56:36
问题 The toolbar and notebook name does not show when I call and load the themes from the notebook. I can load the themes from notebook using a code but I am not sure how to use the switches like -T and -N for call to toolbar and notebook name. I have used the following in a code cell: from jupyterthemes import get_themes import jupyterthemes as jt from jupyterthemes.stylefx import set_nb_theme set_nb_theme('solarizedd') The theme changes but the toolbar and notebook name does not appear. Even

How do I omit matplotlib printed output in Python / Jupyter notebook? [duplicate]

岁酱吖の 提交于 2021-02-06 10:14:53
问题 This question already has answers here : How to hide <matplotlib.lines.Line2D> in IPython notebook (2 answers) Closed 3 years ago . When I make a simple plot inside an IPython / Jupyter notebook, there is printed output, presumably generated from matplotlib standard output. For example, if I run the simple script below, the notebook will print a line like: <matplotlib.text.Text at 0x115ae9850> . import random import pandas as pd %matplotlib inline A = [random.gauss(10, 5) for i in range(20) ]

How do I omit matplotlib printed output in Python / Jupyter notebook? [duplicate]

ε祈祈猫儿з 提交于 2021-02-06 10:14:36
问题 This question already has answers here : How to hide <matplotlib.lines.Line2D> in IPython notebook (2 answers) Closed 3 years ago . When I make a simple plot inside an IPython / Jupyter notebook, there is printed output, presumably generated from matplotlib standard output. For example, if I run the simple script below, the notebook will print a line like: <matplotlib.text.Text at 0x115ae9850> . import random import pandas as pd %matplotlib inline A = [random.gauss(10, 5) for i in range(20) ]

Root access for Jupyter/iPython Notebook

落花浮王杯 提交于 2021-02-06 10:13:52
问题 I'm trying to use the bash kernel in iPython/Jupyter notebook, but I need sudo access within the notebook itself. I've tried $ sudo jupyter notebook to run the notebook as root, but that only returns: $ jupyter: 'notebook' is not a Jupyter command So, I'm left with running $ jupyter notebook (unless there's a way to run Jupyter notebook as root). I also can't do su root in the notebook itself because that requires an input and the notebook won't let me give an input. Finally, there is

How to create/modify a jupyter notebook from code (python)?

白昼怎懂夜的黑 提交于 2021-02-06 10:13:12
问题 I am trying to automate my project create process and would like as part of it to create a new jupyter notebook and populate it with some cells and content that I usually have in every notebook (i.e., imports, titles, etc.) Is it possible to do this via python? 回答1: You can do it using nbformat . Below an example taken from Creating an IPython Notebook programatically: import nbformat as nbf nb = nbf.v4.new_notebook() text = """\ # My first automatic Jupyter Notebook This is an auto-generated