jupyter

jupyter notebook / Failed to start the kernel due the KeyError

守給你的承諾、 提交于 2021-01-29 11:11:20
问题 My jupyter notebook doesn't start due the dead kernel with following Kernel error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/web.py", line 1512, in _execute result = yield result File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run value = future.result() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

Jupyter w/ Tensorflow pydotprint not found error

ⅰ亾dé卋堺 提交于 2021-01-29 07:52:16
问题 I'm using the tensorflow docker image run this way: docker run -it --rm -v $(realpath ~/Documents/notebooks):/tf/notebooks -p 8888:8888 tensorflow/tensorflow:latest-py3-jupyter I'm trying to generate dot files / plots of the model I've made, but all of the functions say: Failed to import pydot. You must install pydot and graphviz for pydotprint to work. At the top of my notebook, I have: !pip install pydot !pip install graphviz And I'm using Tensorflow 2.0.0 How do I get this to work?

Jupyter Cassandra Save Problem - java.lang.NoClassDefFoundError: com/twitter/jsr166e/LongAdder

风格不统一 提交于 2021-01-29 06:40:23
问题 I am using Jupyter notebook and want to save csv file to cassandra db. There is no problem while getting data and showing it, But when I try to save this csv data to cassandra db it throws below exception. : org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1.0 (TID 1, localhost, executor driver): java.lang.NoClassDefFoundError: com/twitter/jsr166e/LongAdder I dowloaded maven package manually both

adding conda environment via cmd line to jupyter doesn't work

北城以北 提交于 2021-01-29 06:02:06
问题 Trying to get OSMnx into jupyter conda environment. But conda environment not set correctly. On command line: Created conda environment using OSMnx installation steps I cloned the environment to rename it 'realestate' Added realestate to Jupyter: > conda activate realestate > conda install -c anaconda ipykernel > python -m ipykernel install --user --name=realestate > which python /opt/anaconda3/envs/realestate/bin/python On Jupyter the realestate environment shows up... but when I run !which

kernel appeared in jupyter notebook but not working

丶灬走出姿态 提交于 2021-01-29 05:45:25
问题 I am planning to use virtual environment in jupyter notebook through the following steps: conda create -n test python==3.6 conda activate test ipython kernel install --user --name=test Then i get the following in return: Installed kernelspec test in C:\Users\User\AppData\Roaming\jupyter\kernels\test which seems to be working when I saw the test kernel appeared in jupyter notebook. However, when I switch to that kernel, it is actually using my default python enviroment. I also checked the

Activating a new Conda env through shell from within Jupyter Notebook

浪尽此生 提交于 2021-01-29 03:17:53
问题 I'm working with a Jupyter Notebook written in Python 3, and I would like to run Python 2 scripts from within that Notebook. I was wondering if it's possible to run Shell commands from within the Notebook, and have these Shell commands running under a different environment. For example, if env2 is a Conda environment that runs Python 2, and env3 runs Python 3, and my Jupyter Notebook runs in env3, maybe I could write within my Notebook: ! source activate env2 ! script_that_uses_python2.py and

Python Pandas in Sage Math 9.0 (Jupyter) - Windows

久未见 提交于 2021-01-29 00:12:47
问题 I've just installed Sage Math 9.0 on Windows and it comes with a jupyter environment. I do have Python installed on my PC and from within the command line i can use python and pandas. But from the jupyter that came with SageMath i can not use pandas. It looks like the jupyter that came with sage does not "know" from the "normal" python installation on my PC. Is there any way to get pandas working with the jupyter notebook from SageMath on Windows? thanks a lot for every answer 回答1: After

Mas OS Big Sur update - Python3 / conda / pip not found

僤鯓⒐⒋嵵緔 提交于 2021-01-28 23:03:51
问题 Sorry if this is a stupid question. I use python/jupyter a lot and it's stopped working after updating from Mac OS High Sierra to Big Sur. I'm trying to figure out why, but I'm not great with command line stuff. The problem. When I try python3 , pip -v , conda , etc. it says "command not found". python still seems to run, but it's 2.7 and I know I had 3 (I probably had a few versions from untidy file systems). I want to avoid reinstalling all my packages and things again, because I know it's

Mas OS Big Sur update - Python3 / conda / pip not found

风格不统一 提交于 2021-01-28 22:44:02
问题 Sorry if this is a stupid question. I use python/jupyter a lot and it's stopped working after updating from Mac OS High Sierra to Big Sur. I'm trying to figure out why, but I'm not great with command line stuff. The problem. When I try python3 , pip -v , conda , etc. it says "command not found". python still seems to run, but it's 2.7 and I know I had 3 (I probably had a few versions from untidy file systems). I want to avoid reinstalling all my packages and things again, because I know it's

Setting default configuration for Jupyter QtConsole

末鹿安然 提交于 2021-01-28 19:48:39
问题 I have Jupyter QtConsole installed in Ubuntu 16.04. How can I set default configuration like font family, size and initial imports? 回答1: The docs on configuration options for jupyter will be very helpful here. In short, open ~/.jupyter/jupyter_qtconsole_config.py in your favorite text editor and find your options of interest. Font family : c.ConsoleWidget.font_family Font size : c.ConsoleWidget.font_size Startup scripts and initial imports will be a little more complicated since those are