spyder

后MATLAB时代的七种开源替代,一种堪称完美!

此生再无相见时 提交于 2020-12-25 18:53:14
近日,有哈工大学生表示收到了正版软件取消激活的通知,而在与 MATLAB 开发公司 MathWorks 交涉之后,被告知由于美国政府实体名单的原因,相关授权已被中止。 目前,哈尔滨工业大学、哈尔滨工程大学的老师和学生们都无法使用 MATLAB。 MATLAB大学读理工科专业的同学基本上都接触过这款软件。有分析人士指出,如果整个学校被禁用了正版 MATLAB,这意味着学校的人员再发表论文或者从事商业项目,其成果原则上就不应包含任何基于 MATLAB 的内容,这对国内相关企业和研究学者带来的影响不可忽视。 这件事在国内社交媒体迅速发酵并登上热搜,引发学术界和技术界的广泛讨论。 现在只是禁止了实体名单的上的几所高校,但是谁又能保证后续不会加码制裁打击中国高校,抑制中国科技发展呢?因此通过此次禁用事件,我们有理由说现在已经到了后MATLAB时代!急需找到MATLAB合适的替代品。 为此我们收集整理到的一些开源软件,可以起到一定的替代效果。包括:SCILAB、Octave、Spyder、Python、GMAT、GNU Radio、ROS。特别是SCILAB,他与MATLAB最为接近,近乎可以实现完美替代! 希望本文对大家有所帮助。另外,也欢迎大家在留言区推荐你知道的替代工具。 1. “近乎完美”替代之SCILAB SCILAB 是一款与 MATLAB 类似的开源软件,可以实现 MATLAB

Win8.1 Anaconda下安装第三方库,以jieba wordcloud为例

拜拜、爱过 提交于 2020-12-19 07:35:04
最近在看情感分析的东西,于是在spyder里import jieba,and then就报错了。 百度之后,发现jieba是一个第三方库,它并不存在于anaconda内置的packages中。所以在用conda install jieba或者打开 Anaconda Navigator来导入都会失败。 于是,我百度,失败,再百度,再失败,再再百度,再再失败……我看的是情感分析,然后在这里卡了也就几小时…… 上演500个回合后,我终于领悟到安装的精髓了。 安装成功,终于可以导入啦!老天啊,我终于安装到了 (于是,我决定下这篇笔记,纪念这充满意义的过程) 这是我在win8.1环境下的操作,其他系统请掉头。 一.jieba 1.At first, 我们需要把jieba 下载到自己的电脑。(下载地址: https://pypi.org/project/jieba/) 页面如下:(进入后点击左侧的download files,然后点击右侧的压缩包下载) 2.下载后,解压,接着把它放到anaconda的其他库的存放位置。(jieba里有个setup.py,我们安装就是要用到这个宝宝,关键人物呀!) 我自己是把Anaconda放在F盘,然后其他库的安装包放在在F:\Anaconda\pkgs里,所以我就把下载的jieba放到这个文件夹下啦! 3.接下来,打开电脑里的程序:Anaconda

Spyder is crashing while idling in background

送分小仙女□ 提交于 2020-12-15 05:23:33
问题 I can launch Spyder, then do absolutely nothing with it and after a while the window just disappears. I've run it from the command prompt with debug-verbose and get this just before it crashes - 2020-11-24 19:03:01,283 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:04:01,292 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:05:01,277 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:06:01,282

Spyder is crashing while idling in background

倾然丶 夕夏残阳落幕 提交于 2020-12-15 05:20:05
问题 I can launch Spyder, then do absolutely nothing with it and after a while the window just disappears. I've run it from the command prompt with debug-verbose and get this just before it crashes - 2020-11-24 19:03:01,283 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:04:01,292 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:05:01,277 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Autosave triggered 2020-11-24 19:06:01,282

Spyder 2 in Ubuntu 18.04

馋奶兔 提交于 2020-12-13 03:20:20
问题 How can I install spyder 2 in Ubuntu 18.04? When I type this in the terminal: sudo apt-get install spyder it installs spyder 3. 回答1: Assuming you want spyder2 for Python 2.7: You need to install spyder for the Python version you want: python -m pip install spyder Then you just need to run it for that version. So: python -m spyder 回答2: You can use pip to install it like follows sudo pip install -Iv spyder==2.3.9 -I : reinstall (Ignore installed). v : verbose. https://pypi.org/project/spyder/

Windows Error using XGBoost with python

大兔子大兔子 提交于 2020-12-12 05:12:18
问题 So I'm tackling this machine-learning problem (from a previous Kaggle competition for practice: https://www.kaggle.com/c/nyc-taxi-trip-duration) and I'm trying to use XGBoost but getting an error which I have no clue how to tackle. I searched on google and stack overflow but couldn't find anyone with a similar problem. I'm using python 2.7 with the Spyder IDE through Anaconda and I'm on Windows 10. I did have some trouble installing the xgboost package so I won't completely erase the idea

“RuntimeError: This event loop is already running”; debugging aiohttp, asyncio and IDE “spyder3” in python 3.6.5

回眸只為那壹抹淺笑 提交于 2020-12-01 10:18:33
问题 I'm struggling to understand why I am getting the "RuntimeError: This event loop is already running" runtime error. I have tried to run snippets of code from "https://aiohttp.readthedocs.io/en/stable/" however, I keep getting the same issue. Code snippet from Tutorial: import aiohttp import asyncio import async_timeout async def fetch(session, url): async with async_timeout.timeout(10): async with session.get(url) as response: return await response.text() async def main(): async with aiohttp

Installing OpenCV with Conda and Spyder

可紊 提交于 2020-11-29 08:35:45
问题 I'm having trouble installing OpenCV with Conda. I tried running numerous commands, none of which worked. For example, when I ran conda install -c anaconda opencv (as per https://anaconda.org/anaconda/opencv) I get this error: UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications: - opencv -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0'] Your python: python=3.8 If

Changing variable name in Spyder

时光总嘲笑我的痴心妄想 提交于 2020-11-26 10:27:12
问题 I have a program with many formulas and variables. I need to change the name of some of these variables. Is there any command or function in Spyder that can help me change all the names in one step? I am looking for something like the Matlab's MAIUSC+ENTER. 回答1: 1) Select the variable you want to change, then Press CTRL + R 2) Enter the new variable name you want. (in replace by) 3) Replace all 回答2: No way to do it currently. It's an open issue. https://github.com/spyder-ide/spyder/issues/415

Changing variable name in Spyder

送分小仙女□ 提交于 2020-11-26 10:24:12
问题 I have a program with many formulas and variables. I need to change the name of some of these variables. Is there any command or function in Spyder that can help me change all the names in one step? I am looking for something like the Matlab's MAIUSC+ENTER. 回答1: 1) Select the variable you want to change, then Press CTRL + R 2) Enter the new variable name you want. (in replace by) 3) Replace all 回答2: No way to do it currently. It's an open issue. https://github.com/spyder-ide/spyder/issues/415