ipython-notebook

No module named sympy

不想你离开。 提交于 2019-12-12 10:38:48
问题 Hi I'm learning linear algebra with python with an Edx course. (http://nbviewer.ipython.org/github/ULAFF/notebooks/tree/may-14-2014/). On "02.4.2.10 Practice with matrix-vector multiplication" with the first box, the code is: import generate_problems as gp print("What is the result of the matrix vector product below?") p = gp.Problem() p.new_problem() generate_problems is a module that the professor at Edx created. However, I got an error importing sympy. I got the error below: --------------

More than one Audio object in a Jupyter (IPython) Notebook cell

夙愿已清 提交于 2019-12-12 10:35:12
问题 I am trying to embed more than one IPython.display.Audio object in a single Jupyter Notebook cell, but for some reason only the last one gets displayed. Here a simple example: import IPython IPython.display.Audio(url="https://ccrma.stanford.edu/~urinieto/drop/090412-Incendios.mp3") IPython.display.Audio(url="https://ccrma.stanford.edu/~urinieto/drop/130224-Undertow.mp3") This only displays one (the second one) audio object. Ideally I would like to place this in a for loop and display multiple

Cannot display inline chart in IPython notebook

早过忘川 提交于 2019-12-12 06:07:04
问题 I've seen the exact same question around but the answers didn't help me. like those questions: Cannot show the graphs on ipython notebook How to make IPython notebook matplotlib plot inline So I decided to post a question so i could post my code, see if there is anything different... hopefully it's something very dull that I'm missing. although the code runs perfectly in ipython shell. Thanks in advance ! %matplotlib inline import matplotlib import numpy as np import matplotlib.pyplot as plt

Changing (back to default) font in ipython notebook

旧时模样 提交于 2019-12-12 05:59:30
问题 I used the following code to change the font of my notebook: <style> div.text_cell_render { font-family: "Times New Roman", serif, serif; } </style> But, didnt like the outcome. I tried to change it back by: <style> div.text_cell_render { font-family: "Arial", serif; } </style> But this does not working. is it becuase Arial is not a serif? I tried different combinations but non worked... 来源: https://stackoverflow.com/questions/20870335/changing-back-to-default-font-in-ipython-notebook

Error importing seaborn in ipython notebook - working in ipython

醉酒当歌 提交于 2019-12-12 04:05:26
问题 I have a somewhat similear problem as this guy: when I want to import seaborn in my ipython notebook I get an import error. When I try to import seaborn in ipython console it works! What is the problem? ImportError Traceback (most recent call last) <ipython-input-6-085c0287ecb5> in <module>() ----> 1 import seaborn /usr/lib/python3.4/site-packages/seaborn/__init__.py in <module>() ----> 1 from .rcmod import * 2 from .utils import * 3 from .palettes import * 4 from .linearmodels import * 5

Error in Converting iPython Notebook file to PDF

家住魔仙堡 提交于 2019-12-12 03:44:50
问题 I am using linux and trying to convert .ipynb file to .pdf by following instructions from here but I am getting following error ipython nbconvert notebook_file.ipynb --to latex --post PDF but I am getting following error [NbConvertApp] Using existing profile dir: u'/home/user/.ipython/profile_default' Traceback (most recent call last): File "/usr/bin/ipython", line 5, in <module> start_ipython() File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 120, in start_ipython return

Connecting to a postgresql db using JDBC from the Bluemix Apache Spark service

a 夏天 提交于 2019-12-12 03:25:31
问题 I have a problem connecting to my postgresql 8.4 db using Apache Spark service on Bluemix. My code is: %AddJar https://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc4.jar -f val sqlContext = new org.apache.spark.sql.SQLContext(sc) sqlContext.load("jdbc", Map("url" -> "jdbc:postgresql://<ip_address>:5432/postgres? user=postgres&password=<password>", "dbtable" -> "table_name")) And I get the error: Name: java.sql.SQLException Message: No suitable driver found for jdbc:postgresql://:5432

How to setup Plotly two horizontal subplots containing heatmaps so that they don't share a colorscale?

荒凉一梦 提交于 2019-12-12 02:18:26
问题 I have two heatmaps. Their values are in totally different scale, so should not share a colorscale. I tried to create a plotly figure w/ two subplots (arranged horizontally) and put each of my heatmaps into one of the subplot. However, the two heatmap shares the same colorscale to the right of the heatmap on the right. The colorscale show two sets of labels overlapped w/ each other. What I'd like to see is that there are two colorscales, one to the right of each heatmap. My code is below.

Cannot start ipython notebook

别说谁变了你拦得住时间么 提交于 2019-12-12 02:04:46
问题 I have installed py27 and ipython and notebook by macport on my mac osx10.9.4. I can open ipython and it works fine but I cannot open ipython notebook. After I type in ipython notebook I got this. 2014-07-23 12:22:11.626 [NotebookApp] Using existing profile dir: u'/Users/zhiyiwu/.ipython/profile_default' 2014-07-23 12:22:11.630 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js Traceback (most recent call last): File "/opt/local/bin/ipython", line 5, in

Broken IPython notebook install Ubuntu 13.10 how to force reinstall

我的梦境 提交于 2019-12-12 01:08:30
问题 I had Ipython notebook (even the dev version working great but then tried to install the "crosscat" component for the new BayesDB It Seems to have re-installed about everything on my system (and with some failures) So now I can't run IPython Notebook anymore. I'm stuck, dead in the water. I tried to go into /usr/local/lib/python2.7/dist-packages and remove all IPython directories. A pip reinstall from a local cloned repo of the dev version reports that all is up to date but there are still no