ipython

Moving Python installation folder does not update ipython paths

不打扰是莪最后的温柔 提交于 2020-01-26 02:19:09
问题 I moved my Python 2.7 installation from C:\Python to D:\Python by simply moving the folder (I understand there are other ways to do this). When running D:\Python\python.exe , I can import system libraries and run things without any issues. However, I cannot run D:\Python\Scripts\ipython.exe. I get the following error: Fatal error in launcher: Unable to create process using '"C:\Python\python.exe" "D:\Python\Scripts\ipython.exe" ' It seems that ipython is aware of its original installation

Moving Python installation folder does not update ipython paths

最后都变了- 提交于 2020-01-26 02:19:07
问题 I moved my Python 2.7 installation from C:\Python to D:\Python by simply moving the folder (I understand there are other ways to do this). When running D:\Python\python.exe , I can import system libraries and run things without any issues. However, I cannot run D:\Python\Scripts\ipython.exe. I get the following error: Fatal error in launcher: Unable to create process using '"C:\Python\python.exe" "D:\Python\Scripts\ipython.exe" ' It seems that ipython is aware of its original installation

How to save state of ipython widgets in jupyter notebook using python code

岁酱吖の 提交于 2020-01-24 19:49:05
问题 I am using ipython widgets in my jupyter notebook. Now when kernel is restarted, the widget state is lost and a message is displayed: “Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells” So when a user reopens his notebook after a kernel restart, he doesn't find the

Automatic scroll down to bottom of result in ipython notebook

别说谁变了你拦得住时间么 提交于 2020-01-24 05:39:28
问题 Is there a way to configure the ipython notebook so that whenever I print a long list, I automatically see the bottom? for example, in the terminal, if I run the following: for i in range(1000): print i It automatically scrolls to the bottom: 992 993 994 995 996 997 998 999 In [2]: But in the Python notebook, I see the beginning and I have to manually scroll down to the last numbers. I am running a long loop that takes a few seconds for each iteration, and it is inconvenient to have to scroll

centos+git+gitolite 安装和部署

浪尽此生 提交于 2020-01-24 05:27:56
一.部署环境   系统:CentOS 6.4x64 最小化安装   IP:192.168.52.131   git默认使用SSH协议,在服务器上基本上不用怎么配置就能直接使用。但是如果面向团队服务,需要控制权限的话,还是用gitolite方便些。   首先用x-shell 工具链接centos 系统 二.安装基础依赖包 [root@nginx ~]#yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel -y 三.在线安装git [root@bogon ~]# yum -y install git 下载安装包安装方式: [root@bogon git-2.2.0]#tar xf git-2.2.0.tar.gz [root@bogon git-2.2.0]#cd git-2.2.0/ [root@bogon git-2.2.0]#make prefix=/usr/local/git all [root@bogon git-2.2.0]#make prefix=/usr/local/git install 增加软连接 [root@bogon git-2.2.0]#ln -s /usr/local/git/bin/* /usr/bin/ 验证结果,显示出版本号,表示安装成功

centos+git+gitolite 安装和部署

ⅰ亾dé卋堺 提交于 2020-01-24 02:38:25
本文原文链接:http://www.cnblogs.com/ponyliu/p/5383096.html 一.部署环境   系统:CentOS 6.4x64 最小化安装   IP:192.168.52.131   git默认使用SSH协议,在服务器上基本上不用怎么配置就能直接使用。但是如果面向团队服务,需要控制权限的话,还是用gitolite方便些。   首先用x-shell 工具链接centos 系统 二.安装基础依赖包 [root@nginx ~]#yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel -y 三.在线安装git [root@bogon ~]# yum -y install git 下载安装包安装方式: [root@bogon git-2.2.0]#tar xf git-2.2.0.tar.gz [root@bogon git-2.2.0]#cd git-2.2.0/ [root@bogon git-2.2.0]#make prefix=/usr/local/git all [root@bogon git-2.2.0]#make prefix=/usr/local/git install 增加软连接 [root@bogon git-2.2.0]#ln

Aligning TextBox Widgets in IPython Notebooks

半世苍凉 提交于 2020-01-23 17:59:30
问题 I am trying to make an IPython notebook more aesthetic by aligning input fields. These fields have some descriptors attached to them, and a few go over the minimum character limit. I would like the text input boxes to be aligned such that the left side all align vertically. Here is a simple ipython example, from IPython.html import widgets # Widget definitions from IPython.display import display # Used to display widgets in the notebook small_widget = widgets.FloatTextWidget(description=

Jupyter notebook Memory limit

醉酒当歌 提交于 2020-01-23 17:12:26
问题 I am using jupyter notebook with python3 on windows 10. My computer have 8GB RAM and at least 4GB of my RAM is free. But when I want to make a npArray with size of 6000*6000 with this command: np.zeros((6000, 6000), dtype='float64') I got this : Unable to allocate array with shape (6000, 6000) and data type float64 I dont think it could take more then 100MB RAM. I tried to change the number too see what happens. biggest shape i can make is (5000,5000). Do i made a mistake in estimate of RAM i

pygal charts not displaying tooltips in Jupyter / IPython notebook

冷暖自知 提交于 2020-01-23 12:56:34
问题 After much research, I finally managed to get tooltips working in pygal thus: Config = pygal.Config() Config.js = ['http://kozea.github.io/pygal.js/2.0.x/pygal-tooltips.js'] bar_chart = pygal.Bar(Config) # Then create a bar graph object bar_chart.add('Fibonacci', [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]) # Add some values bar_chart.render_to_file('bar_chart.svg', force_uri_protocol='https') In the produced .svg, tooltips are now working nicely, but only when the file is opened in a browser .

Using multiple Python shells in Emacs 'python-mode' with Python or IPython

余生颓废 提交于 2020-01-22 15:14:25
问题 Is there a way to force a new instance of python-shell while running Emacs? It would be convenient when working on multiple projects with separate working directories (and different sets of modules). Any attempt to invoke python-shell will only pull up the current instance. 回答1: You need to rename your original python-shell before opening up a new one. Use M - x rename-buffer . 回答2: Renaming the buffer doesn't work for me, but you can use the third parameter of run-python . M - : (run-python