spyder

Problems with Spyder 3 in macOS Sierra

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have recently installed the latest conda distribution on macSierra. I have encountered many problems: 1) My main concern is that Spyder crashes eventually, especially when switching between applications and coming back to Spyder the rotating wheels keeps eternally spinning and unresponsive. This happens after ~10 minutes of use. I have tried spyder with different graphic backend for ipython and the problem still happens. When launching spyder the following message appears: [warn] kq_init: detected broken kqueue; not using.: Undefined error

Shortcut key for commenting out lines of Python code in Spyder

夙愿已清 提交于 2019-12-03 01:38:09
问题 I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE. In Canopy's code editor, it was possible to comment and uncomment lines of code by pressing the "Cntrl+/" shortcut key sequence. In Spyder I was unable to find an equivalent shortcut key in the introductory tutorial. Is there a shortcut key for commenting and uncommenting code in Spyder? 回答1: Single line comment Ctrl + 1 Multi-line comment select the lines to be commented Ctrl + 4

How to use tensorflow on spyder?

て烟熏妆下的殇ゞ 提交于 2019-12-03 00:34:34
I am a new users for Python and want to use tensorflow. I think I successfully installed tensorflow on my mac OSX via Anaconda. But I still can't figure out how to use tensorflow on Spyder. Could someone help me? Many thanks! System default python maybe used on command line, first verify that you are using the python from anaconda distro. Set up the environment variables first. If you are not building tensorflow with GPU support. you can install tensorflow through conda in one command. $ conda install -c https://conda.anaconda.org/jjhelmus tensorflow in Spyder: import tensorflow as tf. and you

Ways to invoke python and Spyder on OSX

狂风中的少年 提交于 2019-12-03 00:29:54
问题 I recently bought a MacBook and install Python on it via Anaconda. Here's the version information: Python 2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Nov 11 2013, 10:49:09) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin I'd like to be able do all of the following: Launch Spyder without having to go through the Launcher application (say, by typing things into Spotlight and Quicksilver) Run Python code from the Finder, presumably by double-clicking on my .py file or by selecting and and pressing

Spyder汉化教程

匿名 (未验证) 提交于 2019-12-03 00:17:01
汉化包下载地址: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> 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做了过滤。 注意!!!

Python Module Error on Linux

风流意气都作罢 提交于 2019-12-03 00:07:44
I am using python 2.7 on Linux Mint 16. I am facing an error, if I run my IDE (tried it on Spyder and Pycharm) from a program launcher (eg. from the prompt at Alt F2 or an icon shortcut on my desktop) the modules do not load and I get the following error File "/usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py", line 1, in from .gurobipy import * ImportError: libgurobi56.so: cannot open shared object file: No such file or directory However, if I run the program from the command line the modules load correctly and the program runs fine. I have only one installation each of the IDEs.

Code to clear console and variables in Spyder

倾然丶 夕夏残阳落幕 提交于 2019-12-02 22:11:47
问题 Tried many suggestions to clear console and variables in Spyder using code not CTRL+L but they do not work. wondering any effective suggestion what the code can be used for clearing Spyder console and variables. using get_ipython().magic('reset -sf') will make the variable explorer not updated. 回答1: ( Spyder maintainer here ) This code both clears the console and removes all variables present on the namespace at the same time: try: from IPython import get_ipython get_ipython().magic('clear')

I cant import textblob package

不打扰是莪最后的温柔 提交于 2019-12-02 20:47:52
问题 I installed textblob using the command pip install . But now I am trying to import it and I get the following error: ModuleNotFoundError: No module named 'textblob' I am using Spyder in a windows 10 system from textblob import TextBlob C:\Users\Diego>pip install textblob Requirement already satisfied: textblob in c:\users\diego\appdata\local\programs\python\python36-32\lib\site-packages (0.15.2) Requirement already satisfied: nltk>=3.1 in c:\users\diego\appdata\local\programs\python\python36

Link to class method in python docstring

我的未来我决定 提交于 2019-12-02 19:54:33
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> : :func:`foo` :func:`self.foo` :func:`MyClass.foo` :func:`mymodule.MyClass.foo` The only one that

Python Spyder choose where and when to show plots

筅森魡賤 提交于 2019-12-02 17:35:29
问题 I'm using Spyder3.1.2 IDE with Python 3.5 in Windows 10 and would like to know how to choose whether to show my plots in the iPython console or in a separate window. I found this other question but I get an error when I type %matplotlib qt (No module named PyQt4). I have also changed the preferences to show graphics "automatically" instead of "inline", but I'm still getting them inline. What I want to end up with is a for loop where on every iteration I add a new point to my graph, which is