atom-editor

Setting up Hydrogen and Atom with Anaconda managing python installation

偶尔善良 提交于 2021-02-07 09:52:35
问题 I have added my python 3 executable to the system PATH (against the advice of Anaconda) to try and get Hydrogen (and really any Atom extension/plugin) to run lines or blocks of code in Atom. The 'scripts' atom plugin appears to work (I select some code and enter ctrl-shift-b ), but I'd love to use more of the features in Hydrogen. When I execute (for example): print('hello world') I get the following error: Python 3 Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\runpy

Can't get Atom Linter to work

我怕爱的太早我们不能终老 提交于 2021-02-06 09:35:06
问题 I'm new to Atom, the text edit, and I installed many packages, including Linter https://github.com/AtomLinter/Linter But it's not showing errors or highlighting code, it's just getting ignored. Do any of you know what I should do to get this to work? 回答1: You have to additionally install a linter package for your desired language. Here is a list: https://atomlinter.github.io/ 回答2: I needed to remove atom config and start from scratch to make linter working mv ~/.atom ~/.atom.bak 回答3: Instead

Giant IPKernelApp Error Using Hydrogen in Atom

﹥>﹥吖頭↗ 提交于 2021-02-04 21:05:55
问题 Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too. I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the

Giant IPKernelApp Error Using Hydrogen in Atom

强颜欢笑 提交于 2021-02-04 21:01:52
问题 Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too. I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the

Atom shows ModuleNotFoundError when running python script

那年仲夏 提交于 2021-01-29 09:28:49
问题 I'm running Mac OS X (10.14.4) and I'm attempting to follow YouTube tutorial; https://www.youtube.com/watch?v=bDaxeg4HKQY; Image Detection with YOLO v2 Process Video in Python + openCV In a UNIX Terminal I'm able to do the following: Configure a virtual environment and activate it; source activate tensorvid Run a python script to setup the necessary dependencies python3 setup.py build_ext --inplace Run a python script successfully python video_processing.py Here is the initial code present

Atom - HTML code turns gray when copying and pasting (updated with code)

匆匆过客 提交于 2021-01-29 06:11:18
问题 I have this weird issue where when I copy and paste into my index.html file in atom, it makes the html code turn gray. This issue only happens when I copy and paste. It doesn't appear to be related to anything in terms of code since this happens regardless of what project I'm working on. If I don't copy and paste into Atom, this issue doesn't happen. It ONLY happens when I copy and paste. I end up running to the issue always since I need to copy and paste the links to libraries for bootstrap,

How do I convert a markdown file with centered text in atom, using pandoc-convert to pdf?

大憨熊 提交于 2021-01-29 04:29:50
问题 Since markdown does not have any options for centering text, but does allow html inline, I've added a tag which works fine for converting to html, but not to pdf using the pandoc-convert package in atom. How do I convert this file to pdf using pandoc-convert in atom while preserving the centered text. --- geometry: margin=1.5cm --- <center> <h1> My name</h1> My Address myemail.com, my2ndemail.com +1 (999) 999-9999 (cell) </center> #### Markdown Title >Some block quoted text. 回答1: The advice

Atom Typescript Not Displaying Errors

筅森魡賤 提交于 2021-01-28 11:00:00
问题 I'm having a problem where Atom isn't displaying Typescript errors. Below is a screenshot of my code example in Atom. And below is a screenshot of the same code in Visual Studio Code. How can I get Atom to display the same errors like Visual Studio Code does? 回答1: Atom requires a plugin in order to provide these errors. Install Atom TypeScript ( apm install atom-typescript ) and restart Atom and the errors will automatically be displayed. If the errors are still not showing up, you may need

Creating class with vm.runInNewContext (forcing class expression instead of class declaration in ES6)

纵饮孤独 提交于 2021-01-28 06:27:09
问题 I am debugging another person's package (currently unmaintained) that runs in the Atom editor. At one point, this package uses vm.runInContext to define a class object, using code equivalent to the following: const vm = require('vm') myClass = vm.runInNewContext('class x {}', {}, 'file') I think this code runs in node.js , but I don't really know all the details of Atom's javascript environment. At any rate, I'm pretty sure it's running in ES6 or later. I believe that when this package was

What are the Atom editor icon classes for Project Manager package?

感情迁移 提交于 2021-01-27 05:05:41
问题 What are the classes already provided by Atom editor (atom.io) like icon-squirrel to use in settings talked in project-manager package? 回答1: I found the answer today in Github Octicons. As Atom is from Github, it works very well on its hackable text editor! 回答2: The icons are all listed in the octicons.less file of the atom repository: https://github.com/atom/atom/blob/master/static/octicons.less Notice however that the latest github version of atom (beta 1.13) is not yet released as of this