jupyter-notebook

Kernel error (Errno 13 Permission denied) in Jupyter Notebook, Windows 10

非 Y 不嫁゛ 提交于 2020-01-20 06:14:06
问题 I have installed Jupyter Notebook on Windows 10. I can execute jupyter notebook command. It opens and shows a list of current path directories. I also can create or open a notebook. But when I do it I get Kernel error in the top right corner. After clicking on it this window appears: Failed to start the kernel Unhandled error Traceback (most recent call last): File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\web.py", line 1699, in _execute result = await

Interactive Python - solutions for relative imports

心不动则不痛 提交于 2020-01-17 04:41:24
问题 From Python relative imports for the billionth time: For a from .. import to work, the module's name must have at least as many dots as there are in the import statement. ... if you run the interpreter interactively ... the name of that interactive session is __main__ Thus you cannot do relative imports directly from an interactive session I like to use interactive Jupyter Notebook sessions to explore data and test modules before writing production code. To make things clear and accessible to

Jupyter running different version of uninstalled library?

血红的双手。 提交于 2020-01-16 19:31:13
问题 So I was trying to modify an existing library and instead of doing it the smart way and using pip -e I instead just installed the libraries, then swapped the modified files for whatever changes I wanted. For example if I had: Library A/ ---doSomethingA.py ---otherFiles.py I just deleted doSomethingA.py and replaced it with my version of doSomethingA.py . Theoretically I figured, because im editing the file locally, it should still work as planned for my library with whatever extra

I am getting an error while connecting to an sql DB in Jupyter Notebook

孤街浪徒 提交于 2020-01-16 16:58:50
问题 Facing issue with below code on jupyter while connecting with SQL DB. con = pyodbc.connect('Driver={ODBC Driver 13 for SQL Server};Server='+server+';Database='+database+';Uid='+username+' ;Pwd='+passwor d+';Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword') Error Description Below: OperationalError: ('08001', '[08001] [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: [error:140A90F1:lib(20):func(169):reason(241)] (-1) (SQLDriverConnect)'

I am getting an error while connecting to an sql DB in Jupyter Notebook

北城余情 提交于 2020-01-16 16:57:31
问题 Facing issue with below code on jupyter while connecting with SQL DB. con = pyodbc.connect('Driver={ODBC Driver 13 for SQL Server};Server='+server+';Database='+database+';Uid='+username+' ;Pwd='+passwor d+';Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword') Error Description Below: OperationalError: ('08001', '[08001] [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: [error:140A90F1:lib(20):func(169):reason(241)] (-1) (SQLDriverConnect)'

None of Index are in the columns

拜拜、爱过 提交于 2020-01-16 14:01:11
问题 I'm trying to describe a list values, but this error appears: KeyError: "None of [Index(['...'],\n dtype='object')] are in the [columns]" I've tried to search for whitespaces. I've set header to 0 and tried the delim_whitespace=True but there aren't any whitespace so I removed it. %matplotlib inline import scipy as sp import pandas as pd import matplotlib.pyplot as plt import statsmodels.formula.api as sm import csv df = pd.read_csv('Dados.csv', sep=";", header=0) x1 = df['com_proc'].values

How to work with .ipynb files without launching the Jupyter Notebook server?

萝らか妹 提交于 2020-01-16 08:35:22
问题 I'm starting to work more with Jupyter notebooks, and am really starting to like it. However, I find it difficult to use it with my particular setup. I have a workstation for running all the notebooks, but for a large part of my day I'm on-the-go with a space-constrained laptop with no power outlets. I'd like to be able to edit (but not run) these notebooks without installing and running the full Jupyter server backend, which I imagine would suck up a lot of power. My question is: Is it

Can't create Jupyter Notebook in a subdirectory

依然范特西╮ 提交于 2020-01-16 04:08:05
问题 I am having issues creating a Jupyter Notebook inside a subdirectory. Instead of creating in the subdirectory, it creates in the root path. Let me exemplify. Let us suppose that I have the following path structure: Then, I open Subdirectory_1 and asks it to create a Notebook. But instead of creating it in the Subdirectory_1 , it creates in the root path. And these are the log messages: 回答1: There is a problem with the nbextensions/widgets/notebook/js/extension.js Try to update or install

plt.figure.Figure.show() does nothing when not executing interactively

谁说我不能喝 提交于 2020-01-16 02:04:52
问题 So I have a following simple code saved in a .py file, and executing in shell: import matplotlib.pyplot as plt myfig = plt.figure(figsize=(5, 5)) ax1 = myfig.add_subplot(1, 1, 1) myfig.show() However it does nothing upon execution, no errors nothing. Then when I start Ipython in shell, and type exact same code, it does pop up an empty window. Why is that? of course I can use plt.show() and everything is fine. But lets say I have two figures, fig1 and fig2, and there is stuff in both figs, and

IPython/Jupyter notebook 3 - hide headers by default

試著忘記壹切 提交于 2020-01-14 09:47:08
问题 Before IPython notebook version 3.0 the notebook headers could be hidden by default by adding this to ".ipython\profile_default\static\custom\custom.js" (on Windows): $([IPython.events]).on("app_initialized.NotebookApp", function () { $('div#header').hide(); $('div#maintoolbar').hide(); }); or for Jupyter, "~/.jupyter/custom/custom.js", with IPython replaced by Jupyter . also see this question This does not seem to work anymore. It hides the headers, but it also leaves a big gap on the page's