jupyter-notebook

No template sub-directory with name 'lab' found in the following paths

情到浓时终转凉″ 提交于 2021-02-08 15:38:10
问题 I am running a python azure function which is running a jupyter notebook via the nbconvert API. This was working for a time, although without deploying new code I have started to get the following error: No template sub-directory with name 'lab' found in the following paths:\n\t/home/.local/share/jupyter\n\t/usr/local/share/jupyter\n\t/usr/share/jupyter The code I am using to achieve this is: from nbconvert.preprocessors import ExecutePreprocessor from nbconvert import HTMLExporter ... dl =

iPython: cannot import module named sklearn

扶醉桌前 提交于 2021-02-08 13:37:09
问题 I am able to import sklearn using the python interpreter, but when I try to do the same in an iPython notebook, iPython throws an ImportError. Any idea what is causing this issue? I need to use a module in iPython. I'm not sure if this will be helpful, but here is a subset of the packages that I have installed on my machine. I followed the instructions here regarding the installation process: http://shanshanchen.com/2013/05/29/install-numpy-scipy-scikit-learn-on-mac-os-x-for-data-miners/ 回答1:

How can I build a GUI to use inside a jupyter notebook?

送分小仙女□ 提交于 2021-02-08 12:21:33
问题 The idea is to be able to build and use the GUI inside the notebook, so working with a long function that has a lot of parameters is more efficient than just typing the characters in the notebook. Obviously not specifics, but if someone can point some library, project, links or any resources that might help. 回答1: I have looked all over internet. So far nothing. There's a message board in PyData where some developer states that jupyter doesn't support GUI. Aside from that, I was thinking

KeyError when formatting locals

本小妞迷上赌 提交于 2021-02-08 11:55:52
问题 I'm facing a KeyError I can't explain or understand. I have a notebook, in which I define a variable PREFIX in a cell: PREFIX = "/home/mavax/Documents/info/notebook/log_study" which is simply a path to a folder containing logs, so people using the notebook just need to change the path if they want to execute the code below. Then, later (quite a bunch of cells beneath), I use it, without any problem: for basename in ["log_converted_full.txt", "log_converted_trimmed.txt"]: entries = load_log

How to set Jupyter notebook to Python3 instead of Python2.7 in AWS EMR

倖福魔咒の 提交于 2021-02-08 10:58:33
问题 I am spinning up an EMR in AWS. The difficulty arises when using Jupyter to import associated Python modules. I have a shell script that executes when the EMR starts and imports Python modules. The notebook is set to run using the PySpark Kernel. I believe the problem is that the Jupyter notebook is not pointed to the correct Python in EMR. The methods I have used to set the notebook to the correct version do not seem to work. I have set the following configurations. I have tried changing

How to set Jupyter notebook to Python3 instead of Python2.7 in AWS EMR

大兔子大兔子 提交于 2021-02-08 10:58:30
问题 I am spinning up an EMR in AWS. The difficulty arises when using Jupyter to import associated Python modules. I have a shell script that executes when the EMR starts and imports Python modules. The notebook is set to run using the PySpark Kernel. I believe the problem is that the Jupyter notebook is not pointed to the correct Python in EMR. The methods I have used to set the notebook to the correct version do not seem to work. I have set the following configurations. I have tried changing

when executing “import pyodbc” in python 3.6 (anaconda3) Jupyter Notebook throws error: ImportError: DLL load failed

一个人想着一个人 提交于 2021-02-08 08:16:58
问题 What I want to accomplish: execute import pyodbc statement within Jupyter Notebook and thus use pyodbc to import data from sql databases such as SQL Server, Exasol, etc. What is the environment: Anaconda3 (py36_0) installed on Windows 10 - 64 bit Version pyodbc installed via conda ( conda install pyodbc ) -> this worked as conda list shows that pyodbc 4.0.16 py36_0 is installed jupyter notebook works, for example import pandas works fine What happens: after issuing the command import pyodbc

pip installed google.colab and now unable to run code on Jupyter notebook

被刻印的时光 ゝ 提交于 2021-02-08 04:41:06
问题 I installed google.colab using pip install google.colab in my terminal, after doing this the jupyter notebook that I was working on stopped working. When I opened a new jupyter notebook, I could not run any code. When I tried to run any code it stayed stuck on In[*] . Before installing google.colab my notebooks were working fine. I tried restarting my kernel but that did not work. I also used pip uninstall google.colab but that gives the following: WARNING: Skipping google.colab as it is not

How to use pypy as a kernel in CPython Jupyter in windows?

大憨熊 提交于 2021-02-08 03:47:27
问题 I installed python using the Anaconda installer and am happily using the version of Jupyter that comes with it. I have also downloaded the (32-bit) windows version of pypy and that works fine from the command line. How can I get CPython Jupyter to use pypy as a kernel when running my python code? 回答1: Pypy doesn't need a different kernel, it can just use ipykernel. It thus isn't listed separately in the list of Jupyter kernels. You can use the same methods used for installing kernels for

Rendering a gltf/glb file in jupyter notebook using vtk and k3d

断了今生、忘了曾经 提交于 2021-02-08 03:41:36
问题 I have explored the available methods of how to render a gltf/glb file inline in a jupyter notebook to keep the viewer callback interactivity intact. I have eventually ended up using vtk and k3d to achieve this. The two hurdles I have are: How to use the vtkGLTFReader() to get vtkPolyData objects from the glb and render these in k3d? SOLUTION : See method posted in the comments. How to display colors/textures embedded in the gltf/glb to show them in k3d? 回答1: Here is the code to get