Manually install the package using symbolic links to the files and
space_tracer
folder, so changes will be loaded when you restart Sublime Text.
You'll also need the git download instructions if you don't already have it.
- Open Sublime Text 3.
- Navigate to Preferences -> Browse packages...
- Create a
Python Live Coding
folder under thePackages
folder. - Download the source code for this project, and link most of the files from
the
sublime
folder into thepython_live_coding
package folder you just created. By using symbolic links, your Sublime package files will stay the same as the ones in this project. Copy thepython_live_coding.sublime-settings
file, because your settings might be different from the defaults. - Also link the
plugin/PySrc/space_tracer
folder into the samePython Live Coding
package folder. - New menus should now be available, and the live coding should work for simple scripts.
- Navigate to Preferences -> Package settings -> Python Live Coding -> Settings - Default
- Set path to preferred Python executable, particularly if you want to use a virtual environment.
- Save and close this pane.
- Open or create a Python file.
- Navigate to Live Coding -> Start
- This should bring up a new pane on the right with the live coding display.
- Begin typing in the left pane and see the code trace results on the right.
- To debug problems, click on the View menu, and choose Show Console. You can
add
logger.info()
calls topython_live_coding.py
, and then restart Sublime Text. Instead of restarting, you can save the plugin settings file to trigger a reload, although that doesn't always work.
- Update the version number in
about.py
and run thetest/PySrc/tools/sublime_publish.py
script. - Commit the version number changes and the new package zip, push, and create a release on GitHub. (Finish the other releases before marking the release on GitHub, if you're releasing more.)