spyder

How do you use replace in Spyder?

早过忘川 提交于 2019-12-03 09:33:05
Well, you start with cursor on your text, Ctrl + H and type replacement. But surprisingly i was not able to found any shorcut for actual replace or replace all action, rather than tabbing 5(!) times or moving my hand for a mouse. Straightforward enter does nothing, tabbing to replace button and entering replaces, but throws me into the editor. VisualStudio-like Alt + A does nothing. Am i missing something in spyder shortcuts? The shortcut for replace is Ctrl + R . drexiya I have the same issue with Spyder, I don't know why this has not been implemented in the editor. The work around I

Spyder汉化教程

不打扰是莪最后的温柔 提交于 2019-12-03 09:29:35
汉化包下载地址:https://www.lizenghai.com/archives/523.html 1、解压汉化包 2、 3.1、运行汉化补丁 PS C:\WINDOWS\system32> cd "D:\code\Spyder_Simplified_Chinese-master" PS D:\code\Spyder_Simplified_Chinese-master> 3.2、切换目录后运行“main.py” PS D:\code\Spyder_Simplified_Chinese-master> python .\main.py 请输入数字以区分汉化方式, 1、手动填入Python模块包路径(如:D:\Anaconda3\Lib\dist-packages 或 D:\Anaconda3\Lib\site-packages)。 2、自动寻找路径。 请输入 1或2: 2 ======================================================= 由于不同用户的环境变量过于复杂难以完全兼顾,因此 加入部分手动配置项。 一般而言,只有Windows系统会比较麻烦。另外,如果你 是windows系统,请确保你的python不是安装在系统盘中 的用户文件夹下的AppData这一类的路径里,为了照顾到 大多数人已经将AppData做了过滤。 注意!!!

tkinter in Spyder

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying my first steps in tkinter . I use Spyder as IDE in Python 3.5.1 |Anaconda 4.0.0. I want to run the very simple script below but it always crashes my Spyder. In a normal shell/bash it runs though and opens the canvas. import tkinter as tkr tk = tkr.Tk() canvas = tkr.Canvas(tk, width=500, height=500) canvas.grid() tk.mainloop() Under Preferences for the Ipython Console I already tried different settings (i.e. Qt, Automatik, Tkinter) but none of it did help. What am I doing wrong (and how can I do it better)? many thanks in advance

Spyder: How to edit a python script locally and execute it on a remote kernel?

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i am using Spyder 2.3.1 under Windows 7 and have a running iPython 2.3 Kernel on a Rasperry Pi RASPBIAN Linux OS. I can connect to an external kernel, using a .json file and this tutorial: Remote ipython console But what now? If I "run" a script (F5), then the kernel tries to exectue the script like: %run "C:\test.py" ERROR: File u'C:\\test.py' not found. This comes back with an error, ofc, because the script lays on my machine under c: and not on the remote machine/raspberry pi. How to I tell Spyder to somehow copy first the script to the

How to start two instances of Spyder with Python 2.7 & Python 3.4?

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I had spyder installed with Python 3.4 on Windows Vista. Today I wanted to run spyder with Python 2.7. So, went through this post & installed Python 2.7 for spyder. Now, how do I start spyder with Python 2.7 instead of the default 3.4? ( I wanted to comment at the post & ask @user3058525 but could not due to reputation restriction ) Could anyone help out? P.S: I could create a virtualenv. But want to work in spyder... 回答1: @Roberto: Gotcha! Learnt that we can check for environments installed in conda using conda info -e It showed

Link to class method in python docstring

。_饼干妹妹 提交于 2019-12-03 06:26:38
问题 I want to add a link to a method in my class from within the docstring of another method of the same class. I want the link to work in sphinx and preferentially also in Spyder and other Python IDE's. I tried several options and found only one that works, but it's cumbersome. Suppose the following structure in mymodule.py def class MyClass(): def foo(self): print 'foo' def bar(self): """This method does the same as <link to foo>""" print 'foo' I tried the following options for <link to foo> :

Spyder missing Object Inspector

南楼画角 提交于 2019-12-03 05:23:12
I just installed Anaconda and running Spyder I cannot find the Object Inspector. Hitting Ctrl+I has no effect and in the View/Panes menu there is no item Object Inspector. I have seen videos and tutorials that show the Object Inspector. What is happening? The "Object Inspector" is now called "Help" (from Spyder version 3.0 onwards); see https://groups.google.com/forum/#!topic/spyderlib/pF7KmSKDFXc . However, the Ctrl-I shortcut has not been changed, so I'm not sure what's happening with that. go to preferences > Help and enable the Automatic connections for Editor and restart the Spyder

Spyder - UMD has deleted: module

痞子三分冷 提交于 2019-12-03 04:39:24
I have been fooling around for about a month with python now and something is bothering me. I use the python(x,y) toolkit, which comes with the neat Spyder IDE. My question concerns the UMD (User module deleter) of Spyder. I found this graphics module on the internet, which helps one to do some simple graphic stuff in a python script (as far as I understand). It is not like i'm stuck, but when I execute the folowing code: import pylab as p import graphics as g window = g.GraphWin("tryout", 600, 600) window.close() print p.sqrt(4) The output is: >>>runfile(r'C:\some\folders\tryout.py', wdir=r'C

Anaconda 报错: couldn't find or load Qt platform plugin "Windows in

半城伤御伤魂 提交于 2019-12-03 03:58:15
win10 上anaconda 报错 刚刚在W10 上安装Anaconda ,打开spyder时报错: “This application failed to start because it could not find or load the Qt platform plugin “windows in “”. Reinstalling the application may fix this problem.” google 后发现解决方法为: 来源: CSDN 作者: 散步怀渔樵 链接: https://blog.csdn.net/u014084019/article/details/77915200

Spyder default module import list

半世苍凉 提交于 2019-12-03 03:10:50
I'm trying to set up a slightly customised version of Spyder. When Spyder starts, it automatically imports a long list of modules, including things from matplotlib, numpy, scipy etc. Is there a way to add my own modules to that list? In case it makes a difference, I'm using the Spyder configuration provided by the Python(X,Y) Windows installer. First you have to create a Python file with the modules you want to import at startup. Suppose you call it my_imports.py and that it has this contents: import numpy as np import matplotlib.pyplot as plt Then you have to go to Tools > Preferences >