ipython-notebook

iPython Notebook in Windows - Error on Startup

我的梦境 提交于 2020-01-06 20:35:21
问题 I am trying desperately to get ipython notebook to work in a windows environment. I installed Continuum IO's Anaconda, a scientific distribution of python. I want to use ipython notebook, but get the following error. ipython in the terminal works fine. Any thoughts? UPDATE: As asked for below, here is the output from sys.path on my system. ['', 'C:\\Anaconda\\scripts', 'C:\\Anaconda\\lib\\site-packages\\distribute-0.6.45-py2.7.egg', 'C:\\Anaconda', 'C:\\Users\\btibert\\ C:\\Anaconda\\Scripts'

iPython Notebook in Windows - Error on Startup

孤者浪人 提交于 2020-01-06 20:35:03
问题 I am trying desperately to get ipython notebook to work in a windows environment. I installed Continuum IO's Anaconda, a scientific distribution of python. I want to use ipython notebook, but get the following error. ipython in the terminal works fine. Any thoughts? UPDATE: As asked for below, here is the output from sys.path on my system. ['', 'C:\\Anaconda\\scripts', 'C:\\Anaconda\\lib\\site-packages\\distribute-0.6.45-py2.7.egg', 'C:\\Anaconda', 'C:\\Users\\btibert\\ C:\\Anaconda\\Scripts'

IPython notebook put code cells into columns

烂漫一生 提交于 2020-01-06 14:41:45
问题 Is there a way to organize the code cells in a column format? I would like to write derivations in IPython notebook, but every auxiliary equation seems to break up my derivation. I'm using a module to write my equations and entering my equations into code cells, so I can't use simple html alignment inside markdown. Any help is greatly appreciated! An example of what I mean is that I would like my code cells to look like this... Instead of the regular vertically aligned cells... 回答1: After

IPython notebook put code cells into columns

ⅰ亾dé卋堺 提交于 2020-01-06 14:41:14
问题 Is there a way to organize the code cells in a column format? I would like to write derivations in IPython notebook, but every auxiliary equation seems to break up my derivation. I'm using a module to write my equations and entering my equations into code cells, so I can't use simple html alignment inside markdown. Any help is greatly appreciated! An example of what I mean is that I would like my code cells to look like this... Instead of the regular vertically aligned cells... 回答1: After

IPython notebook put code cells into columns

可紊 提交于 2020-01-06 14:41:12
问题 Is there a way to organize the code cells in a column format? I would like to write derivations in IPython notebook, but every auxiliary equation seems to break up my derivation. I'm using a module to write my equations and entering my equations into code cells, so I can't use simple html alignment inside markdown. Any help is greatly appreciated! An example of what I mean is that I would like my code cells to look like this... Instead of the regular vertically aligned cells... 回答1: After

dataframe re-indexing object unnecessarily preserved in memory

╄→尐↘猪︶ㄣ 提交于 2020-01-06 14:14:27
问题 In continuation from this question I've implemented 2 functions doing the same thing, one is using re-indexing and the other does not. the functions differ in the 3rd line: def update(centroid): best_mean_dist = 200 clust_members = members_by_centeriod[centroid] for member in clust_members: member_mean_dist = 100 - df.ix[member].ix[clust_members].score.mean() if member_mean_dist<best_mean_dist: best_mean_dist = member_mean_dist centroid = member return centroid,best_mean_dist def update1

Troubleshooting: Kernel always dies using IJulia in IPython notebook

馋奶兔 提交于 2020-01-05 14:13:23
问题 I recently began using julia, and I would like to use in with IPython Notebook/Jupyter. So, I installed julia using MacPorts, i.e. sudo port install julia . Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl After the prompt, I used "Pkg.add("IJulia") to install IJulia. However, I cannot use Julia with IPython notebook. After opening the notebook with ipython notebook --profile=julia the kernel for the julia notebook dies instantly and cannot be restarted.

Printing to main stdout in IPython Notebook from other parallel engines

萝らか妹 提交于 2020-01-05 10:27:18
问题 I am currently working in an IPython Notebook. I am running a function across different engines and would like to see what it prints. Example: def simple(a): print a+40; return a+20 A = range(20); dview.map_sync(simple, A); I would like this functionality because I'm running a function that runs for a long time and I am using print statements to keep track of its progress. 来源: https://stackoverflow.com/questions/16430827/printing-to-main-stdout-in-ipython-notebook-from-other-parallel-engines

Can PyCharm set breakpoints on ipython notebook?

随声附和 提交于 2020-01-05 03:09:13
问题 I'd like to know how to set breakpoints in IPython notebook on PyCharm. If it's possible, please let me know. 回答1: You must start IPython Notebook from Pycharm's run Find the IPython path (ex which ipython on linux). Copy the resulting path, we will need it! On PyCharm go to Run > Edit Configuration > + button on top left most corner (add configuration) > Choose Python. Give your configuration a name. On the configuration tab, in the Script textbox, paste the path from step 1. On the script,

Can IHaskell and IPython coexist?

坚强是说给别人听的谎言 提交于 2020-01-04 14:01:48
问题 I have IPython and IPython Notbook installed and am working my way through the IHaskell installation instructions. I have all the IHaskell prerequisites installed, but before I commit to the final step of installing IHaskell itself with cabal install ihaskell --reorder-goals I want to confirm one — perhaps obvious — thing: Will I still be able to use Python Notebooks? The instructions following the step above seem to say that simply entering ipython notebook will run Haskell rather than