jupyter-notebook

Is there any way to get just the mini boxplot from a seaborn violinplot?

孤街浪徒 提交于 2019-12-11 19:06:36
问题 I'm trying to draw a very long series of boxplots. I like the aesthetic of the miniature boxplots drawn inside violinplot (controlled via the "inner" parameter to seaborn.violinplot). Does anyone know of an easy way to draw just this mini boxplot without the rest of the violinplot? Thanks! 回答1: The violins are PolyCollection objects. You could remove all PolyCollection s from the axes. This would make sense if the axes only contain the violin plots and not any other PolyCollection s in

`jupyter notebook` gives error: `“Could not open static file ''”` on macOS

丶灬走出姿态 提交于 2019-12-11 18:04:25
问题 I haven't changed my system configuration, But I'm spotting this error for the first time today. I've reported it here: https://github.com/jupyter/notebook/issues/4871 > jupyter notebook [I 10:44:20.102 NotebookApp] JupyterLab extension loaded from /usr/local/anaconda3/lib/python3.7/site-packages/jupyterlab [I 10:44:20.102 NotebookApp] JupyterLab application directory is /usr/local/anaconda3/share/jupyter/lab [I 10:44:20.104 NotebookApp] Serving notebooks from local directory: /Users/pi [I 10

How to force `conda` to install the latest version of `jupyter`?

余生颓废 提交于 2019-12-11 18:04:16
问题 This question is motivated by `jupyter notebook` gives error: `"Could not open static file ''"` on macOS After conda update jupyter , jupyter --version gives jupyter-notebook : 6.0.0 However on https://github.com/jupyter/notebook, clicking Branch: master -> tags I see a 6.0.1 tag. How can I upgrade to 6.0.1 ? > conda install jupyter=6.0.1 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting

Where does Jupyter install site-packages on macOS?

孤者浪人 提交于 2019-12-11 18:04:14
问题 Due to a bug in the current shipping Jupyter ( 6.0.0 ), I get a missing file error. It can't find /static/components/react/react-dom.production.min.js https://github.com/jupyter/notebook/pull/4772#issuecomment-515794823 advises to manually add the file. However I cannot locate the absolute path, So I don't know where to put the file. Where is /static/... located on my filesystem? Full output: > jupyter notebook [I 10:44:20.102 NotebookApp] JupyterLab extension loaded from /usr/local/anaconda3

fast way to display video from arrays in jupyter-lab

最后都变了- 提交于 2019-12-11 17:56:42
问题 I'm trying to display a video from some arrays in an notebook in jupyter-lab. The arrays are produced at runtime. What method to display the images can deliver a (relatively) high framerate? Using matplotlib and imshow is a bit slow. The pictures are around 1.8 megapixel large. Above some very small example to visualize what I want to achieve. while(True): #should run at least 30 times per second array=get_image() #returns RGBA numpy array show_frame(array) #function I search for 回答1: The

jupyter in virtualenviroment sys.path [duplicate]

六月ゝ 毕业季﹏ 提交于 2019-12-11 17:54:17
问题 This question already has answers here : Jupyter Notebook in virtual environment doesn't see the virtual env packages (2 answers) Closed 2 years ago . Jupyter in virtual enviroment doesn't succeed to load (import) libraries I tried to print sys.path in virtual enviroment JUPYTER and TERMINAL and it looks different. How it's possible to fix it? If I print sys.path from terminal and jupyter the output is also different: from TERMINAL /Users/myname/virtualenv/ker12/lib/python27.zip /Users/myname

ModuleNotFoundError: No module named 'pandas' (jupyter notebook)

邮差的信 提交于 2019-12-11 17:31:42
问题 I don't understand how to install modules to Jupyter Notebook. I tried importing different frameworks but nothing can be imported even though I have everything installed in my system. I'm using pip. Or maybe there's a way to point Jupyter to a certain virtualenv? 回答1: import sys !{sys.executable} -m pip install pandas 回答2: Packages are usually installed using pip. You can use pip in many ways, such as : Directly in your jupyter notebook by writing the following command: !pip install pandas

Importing scripts into a notebook in IBM WATSON STUDIO

青春壹個敷衍的年華 提交于 2019-12-11 17:14:57
问题 I am doing PCA on CIFAR 10 image on IBM WATSON Studio Free version so I uploaded the python file for downloading the CIFAR10 on the studio pic below. But when I trying to import cache the following error is showing. pic below- After spending some time on google I find a solution but I can't understand it. link https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/add-script-to-notebook.html the solution is as follows:- Click the Add Data icon (Shows the Add Data icon), and then

How to draw a graph for each sentence in the document based on the tags assigned to each word in the document using Python

北城余情 提交于 2019-12-11 16:58:22
问题 Extract out each sentence from the document.(cricket.txt) Check for each tag of the word in tagged-text.txt If word is N-NNP then assign it to subject_list, if word is QT-QTC, N-NN, PR-PRP then assign it to object_list, if word is V_VM_VF then assign it to verb_list Create a graph for each sentence in the document. I'm using Python 2.7 on Jupyter Notebook. for subject in subject_list: s=subject.decode('utf-8') graph.add_node(s) labels[s]=s Example: Tommy Dias is drinking milk. Tommy/N-NNP,

Jupyter Notebook can't find modules for python 3.6

大憨熊 提交于 2019-12-11 16:56:39
问题 Not sure what happened but whenever I use ipython, hydrogen (atom) or jupyter notebook can't find any of the installed modules. I know I have pandas installed but the notebook says its not found. I should add that when I run the script normally ( python script.py ) it does import without any errors. Suggestions? Thanks! 回答1: Try the following: pip3 install ipykernel --upgrade python3 -m ipykernel install --user Make sure that Panda is installed using pip3. 回答2: Issue seems to be resolved by