PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 19, 2022

[FIXED] How do I run a python file in Atom? Conda env?

 August 19, 2022     atom-editor, conda, environment-variables     No comments   

Issue

I don't quite know what to do. I use VSCode and Jupyter Notebook and conda env. I just downloaded Atom and it keeps saying no kernal for grammar python. I have a similar problem if I try using the conda command in Terminal where it doesn't recognize the conda command until I:

export PATH=/Users/edgar/anaconda3/bin:$PATH

How do I make my atom run my python code? Thank you very much.


Solution

to set up atom to become a python ide you need packages like:

Community Packages (14) /home/simone/.atom/packages
├── Hydrogen@2.14.1
├── atom-ide-ui@0.13.0
├── autocomplete-python@1.16.0
├── hydrogen-python@0.0.8
├── ide-python@1.5.0
├── intentions@1.1.5
├── linter@2.3.1 (disabled)
├── linter-flake8@2.4.0
├── linter-ui-default@1.8.1
└── python-autopep8@0.1.3

and to run atom on a conda / pyenv environment you just need to:

$ cd [path to project]
$ conda activate [env]
$ atom .

so that atom will use that python env to run the scripts.



Answered By - simone viozzi
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing