atom-editor

Getting document is not defined , from document.getElementById

依然范特西╮ 提交于 2020-08-15 10:14:20
问题 I am learning JavaScript and I am using Atom (Text Editor). On my HTML file I got only this: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <script src="script.js"></script> </head> <body> <h1>Hello Plunker!</h1> <button id="displayTodosButton">Display Todos</button> <button>Toggle Todos</button> </body> </html> On my javascript file, I am simply trying to access the "Display todos" button using this: var displayTodosButton = document.getElementById('displayTodosButton

Getting document is not defined , from document.getElementById

 ̄綄美尐妖づ 提交于 2020-08-15 10:11:28
问题 I am learning JavaScript and I am using Atom (Text Editor). On my HTML file I got only this: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <script src="script.js"></script> </head> <body> <h1>Hello Plunker!</h1> <button id="displayTodosButton">Display Todos</button> <button>Toggle Todos</button> </body> </html> On my javascript file, I am simply trying to access the "Display todos" button using this: var displayTodosButton = document.getElementById('displayTodosButton

Getting document is not defined , from document.getElementById

跟風遠走 提交于 2020-08-15 10:10:07
问题 I am learning JavaScript and I am using Atom (Text Editor). On my HTML file I got only this: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <script src="script.js"></script> </head> <body> <h1>Hello Plunker!</h1> <button id="displayTodosButton">Display Todos</button> <button>Toggle Todos</button> </body> </html> On my javascript file, I am simply trying to access the "Display todos" button using this: var displayTodosButton = document.getElementById('displayTodosButton

run python input user in atom

纵然是瞬间 提交于 2020-08-10 20:00:41
问题 I am new to Atom and coding in general. On my HND I have used Sublime Text 3 so taking a look at Atom. So far, so good. I have decided to start learning Python. I created my first script which just asks a user for their name and age. I have used Pythons input() function to request this information. I installed the package Script https://atom.io/packages/script 1.1k This ran the script well but couldn’t deal with the input. I have also tried a number of other options but havn’t had any success

Setting Up a Python Virtual Environment with Hydrogen in Atom

孤街醉人 提交于 2020-08-05 17:26:57
问题 I'm in the middle of switching from VS Code to Atom and I'm trying to set up a virtual environment for my python project. It was pretty easy to do in VS Code, I'd run the following script and it would automagically start using the new env (with all the required packages) when I'd run the script: python3 -m venv my_env source my_env/bin/activate pip3 install -r requirements.txt Now I'm trying to set up Hydrogen to work the same way. When I run lines of code inline with Hydrogen, I want them to

Virtual Environment and Atom

一曲冷凌霜 提交于 2020-07-09 02:36:47
问题 I am using Atom IDE for working with Python along with Scripts package. I have created a virtual environment in my folder and want to use the packages in the same to work with Scripts. Steps I have taken: Activate the environment and start the atom from cmd with atom . command Use atom-python-virtualenv for selecting the virtual environment and then trying to run with Scripts package. However in both cases the packages (installed in virtualenv) result in an import error. Am I missing

Virtual Environment and Atom

十年热恋 提交于 2020-07-09 02:31:18
问题 I am using Atom IDE for working with Python along with Scripts package. I have created a virtual environment in my folder and want to use the packages in the same to work with Scripts. Steps I have taken: Activate the environment and start the atom from cmd with atom . command Use atom-python-virtualenv for selecting the virtual environment and then trying to run with Scripts package. However in both cases the packages (installed in virtualenv) result in an import error. Am I missing