sublimetext

Sublime Text 3 unable to import python module although importing from command line is possible?

╄→гoц情女王★ 提交于 2020-08-07 05:32:49
问题 when I tried to build with python in ST3, I get an import error as I tried to do import caffe but when I simply ran on the terminal, typing $ python >>> import caffe it works. On my sublime text 3 I still can import other modules like numpy and matplotlib. This is the sublime python build I found (is this the right location? Why is it not extracted out but instead in a package?): The directory is: /opt/sublime_text/Packages/Python.sublime-package and the file python.sublime-build in the

Sublime Text 3 unable to import python module although importing from command line is possible?

馋奶兔 提交于 2020-08-07 05:32:36
问题 when I tried to build with python in ST3, I get an import error as I tried to do import caffe but when I simply ran on the terminal, typing $ python >>> import caffe it works. On my sublime text 3 I still can import other modules like numpy and matplotlib. This is the sublime python build I found (is this the right location? Why is it not extracted out but instead in a package?): The directory is: /opt/sublime_text/Packages/Python.sublime-package and the file python.sublime-build in the

Python was not found but can be installed

跟風遠走 提交于 2020-06-29 04:00:45
问题 I have just installed python3.8 and sublime text editor. I am attempting to run the python build on sublime text but I am met with "Python was not found but can be installed" error. Both python and sublime are installed on E:\ When opening cmd prompt I can change dir and am able to run py from there without an issue. I'm assuming that my sublime is not pointing to the correct dir but don't know how to resolve this issue. 回答1: This isn't a Sublime issue, it's a Windows 10 issue. My Windows 10

How to get a hyperlink on a web page to open a file in a text editor (Sublime Text)

耗尽温柔 提交于 2020-06-16 03:32:12
问题 I'm working on a large static website (Jekyll) and would like to be able to click on a link on a page in browser (Chrome) which will open it's corresponding source file on the local machine (Sublime). I can get the absolute link of the file. From the console (Ubuntu) I can do: subl path/to/file.txt to open a file, so perhaps an extension that allows command execution on trusted domains? 回答1: There's a Chrome extension, that let's you open a link with an external application: Open with

Resetting font size shortcut for Sublime Text 3

耗尽温柔 提交于 2020-06-08 04:55:59
问题 I love working with Sublime Text, but one of its features annoys me sometimes which is "the accidental zoom in" . Whenever that happens it breaks the momentum and I have to change it back to where it was and is kind of annoying. I searched for a shortcut which can reset the size back to normal but each one of them involved creating a python file and it does not work for me for some reason. What would made my life much easier that if I could just change something in Preference.sublime-settings

How to run python code in Sublime Text 3?

强颜欢笑 提交于 2020-05-12 04:54:21
问题 So I'm trying to run python code from Sublime Text 3, but I'm not sure how. Even if it was only from the console, that would be fine. Anybody know how??? 回答1: Tools->Build System->Python or Ctrl+B 回答2: Need to install package to run python from sublime Python + Sublime 回答3: Try Anaconda plugin which will help you to run python on sublime Setup Sublime for python 回答4: You can use this package in sublime text: https://packagecontrol.io/packages/Terminal to open a terminal at the specific file

How to run python code in Sublime Text 3?

烂漫一生 提交于 2020-05-12 04:53:47
问题 So I'm trying to run python code from Sublime Text 3, but I'm not sure how. Even if it was only from the console, that would be fine. Anybody know how??? 回答1: Tools->Build System->Python or Ctrl+B 回答2: Need to install package to run python from sublime Python + Sublime 回答3: Try Anaconda plugin which will help you to run python on sublime Setup Sublime for python 回答4: You can use this package in sublime text: https://packagecontrol.io/packages/Terminal to open a terminal at the specific file

How to run python code in Sublime Text 3?

我们两清 提交于 2020-05-12 04:52:27
问题 So I'm trying to run python code from Sublime Text 3, but I'm not sure how. Even if it was only from the console, that would be fine. Anybody know how??? 回答1: Tools->Build System->Python or Ctrl+B 回答2: Need to install package to run python from sublime Python + Sublime 回答3: Try Anaconda plugin which will help you to run python on sublime Setup Sublime for python 回答4: You can use this package in sublime text: https://packagecontrol.io/packages/Terminal to open a terminal at the specific file

Sublime Text 3 find stops at the end of the file

若如初见. 提交于 2020-04-18 04:59:49
问题 If I have a text file: 1. foo 2. foo 3. foo 4. foo ctrl + f will find the 1. then 2. ... and after finding 4. it'll say "No results". It used to just jump to 1. again. It still does so on my laptop but not when I use my PC. 回答1: You can get Sublime Text to continue searching from the top of the file again by toggling the "Wrap" behavior. There is a button for this in the Find panel. 来源: https://stackoverflow.com/questions/52294286/sublime-text-3-find-stops-at-the-end-of-the-file

Parsing Error The Keyword import is Reserved (SublimeLinter-contrib-eslint)

匆匆过客 提交于 2020-03-17 04:08:49
问题 I have a problem with eslint, it gives me [Parsing Error The keyword import is reserve] this is only occur in sublime, in atom editor work well. I have eslint .eslintrc.js module.exports = { "extends": "airbnb", "plugins": [ "react" ] }; package.json { "name": "paint", "version": "0.0.0", "description": "paint on the browser", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "paint", "javascript" ], "author": "", "license": "ISC",