spyder

Cloning a package from github and use in spyder

三世轮回 提交于 2021-02-19 07:57:09
问题 I would like to create a copy of a package on github that I can edit and use in spyder. I currently use the anaconda package manager for my python packages. Here are the steps that I have taken so far: fork repo clone repo onto my local directory The package is called 'Nilearn'. I currently use anaconda and have installed nilearn via 'conda install nilearn'. I would like to be able to use my own copy of nilearn inside spyder alongside nilearn. I have tried renamine the repo to nilearn_copy,

Spyder interface icons very small on high resolution screen in Windows 10

回眸只為那壹抹淺笑 提交于 2021-02-18 22:08:24
问题 I got a brand-new laptop with a resolution of 3840 x 2160 running Windows 10. After I installed Anaconda + Spyder for python coding, I noticed that the icons are extremely small, as well as the text on the Object Inspector section: Is there a way to fix this? It seems closely related to the resolution as it is also happening with Eclipse. PS: The Eclipse workarounds includes lowering resolution which is far from ideal. I was wondering if this can be fixed maintaining the resolution settings.

Spyder interface icons very small on high resolution screen in Windows 10

我是研究僧i 提交于 2021-02-18 22:00:51
问题 I got a brand-new laptop with a resolution of 3840 x 2160 running Windows 10. After I installed Anaconda + Spyder for python coding, I noticed that the icons are extremely small, as well as the text on the Object Inspector section: Is there a way to fix this? It seems closely related to the resolution as it is also happening with Eclipse. PS: The Eclipse workarounds includes lowering resolution which is far from ideal. I was wondering if this can be fixed maintaining the resolution settings.

Spyder Not Launching

。_饼干妹妹 提交于 2021-02-18 10:24:27
问题 I have two environments in which spyder just doesn't want to launch. I click the icon there is a waiting cursor then nothing happens. One of the two is totally new that I just made today. After installing some packaged (pip install pytrends was the last one) it stopped opening. Note: the general spyder at: C:\ProgramData\Anaconda3\Scripts\spyder.exe does launch, but not the one for the environments. 回答1: This solves the problem: conda upgrade qt 回答2: Just try this : uninstall pyQt using conda

Spyder Console - Error ocurred while starting the Kernel

那年仲夏 提交于 2021-02-17 06:23:05
问题 Spyder console is showing an error msg: An error ocurred while starting the kernel Traceback (most recent call last): File "C:\Users\ABCD\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\ABCD\Anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\ABCD\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in start.main() File "C:\Users\ABCD\Anaconda3\lib\site‑packages\spyder_kernels\console\start

How to hide hover tooltips on Spyder 4

十年热恋 提交于 2021-02-16 05:46:12
问题 not sure where to ask: is there a way to not have the help tooltip/popup/hover window opening in spyder? since updating to 4.0 the window does not close when you change between windows: guess something like this will be reported and delt with in future updates but for now i would be happy to just disable it (using 64-bit windows-10 machine) 回答1: ( Spyder maintainer here ) Yes, there is. You need to go to the menu Tools > Preferences > Completion and linting > Introspection and deactivate the

How to hide hover tooltips on Spyder 4

巧了我就是萌 提交于 2021-02-16 05:46:02
问题 not sure where to ask: is there a way to not have the help tooltip/popup/hover window opening in spyder? since updating to 4.0 the window does not close when you change between windows: guess something like this will be reported and delt with in future updates but for now i would be happy to just disable it (using 64-bit windows-10 machine) 回答1: ( Spyder maintainer here ) Yes, there is. You need to go to the menu Tools > Preferences > Completion and linting > Introspection and deactivate the

Pandas Styler not printing dataframe to Spyder's console as expected

穿精又带淫゛_ 提交于 2021-02-13 17:38:14
问题 I am trying to output a pandas dataframe with colored cells to the console using the pandas Styler feature. When I run code examples in Spyder 3.2.6 running python 2.7, instead of seeing the dataframe as expected, the console outputs "...pandas.core.style.Styler at 0x1d0d7cf8>..."....this is what I would expect see with high-dimensional objects that ie need to be subset in order to view properly in the console I've also tried calling .render() on the dataframe but this outputs a lot of

scipy.optimize get's trapped in local minima. What can I do?

对着背影说爱祢 提交于 2021-02-13 17:30:09
问题 from numpy import *; from scipy.optimize import *; from math import * def f(X): x=X[0]; y=X[1] return x**4-3.5*x**3-2*x**2+12*x+y**2-2*y bnds = ((1,5), (0, 2)) min_test = minimize(f,[1,0.1], bounds = bnds); print(min_test.x) My function f(X) has a local minima at x=2.557, y=1 which I should be able to find. The code showed above will only give result where x=1 . I have tried with different tolerance and alle three method: L-BFGS-B, TNC and SLSQP. This is the thread I have been looking at so

Debuggers throwing “ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package”

无人久伴 提交于 2021-02-11 18:22:57
问题 A piece of code that worked fine in the past now throws the error ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package whenever I issue the command from flask import Flask while developing and debugging. This even happens in the Flask __init__.py script if I run it in either the Spyder or VSCode debuggers. Weirdly my Flask application still runs when I flask run from the console (Anaconda) and navigate my website. The working directories all look