![]() When you print from a client, it will appear in the Console, which can be opened by clicking the blue number in the bottom right corner of the editor, from the View menu, or by using the Console: Toggle console command. Note that in order for Light Table to use IPython, pyzmq also needs to be installed. To see if Light Table is using IPython for Python eval, open the connect tab and look to see if your Python client has the type of ipython. With it you can use matplotlib and pylab inline. If you don’t have it installed, follow these instructions to do so (make sure you install pyzmq as well). This will cause Light Table to start a python client that it can then send code to.īy default, if Light Table can find a recent IPython installed on your machine, it will use it to provide a much more robust python evaluation environment. The easiest way is to simply open a Python file and press Cmd/Ctrl+Enter. Select your nodejs client from the popup.Choose a Javascript file to start the node server with.You can eval ClojureScript a couple of differentīuilding your cljs assets and then pressing Cmd/Ctrl+Enter is recommended. Light Table will find a leiningen project if there is one or it will use it’s local REPL client to evaluate your code. If you have something selected Light Table will send the selection text for eval if you press Cmd/Ctrl+Enter. Once open, it is now available as an evaluation client and Cmd/Ctrl+R is bound to refreshing it.Īuto-complete is bound to the Tab key if there’s some non-space character preceding the cursor, otherwise a tab is inserted. You can open a browser tab by either using the Browser: add browser tab command or by choosing the browser client type form the “Add Connection” menu in the connect tab. #Open a browser tab for live modification? To close a tabset you can either use the Tabs: Remove active tabset command or resize it such that it has 0 width.īy default, Cmd/Ctrl+Shift+N is bound to the command Window: Open new window, which you can also just execute from the command tab. You can create a new tabset by either right clicking in the tab area and selecting New tabset or by using the Tabs: Add a tabset command in the command bar. Keybindings that are set by default can be subtracted/removed by prefixing the key with ‘-‘ e.g. If you want to bind multiple commands to the same keybinding, use a simple vector for the whole binding-command e.g. If a command takes arguments wrap the command and its arguments in a parentheses e.g. To add a keybinding to your user.keymap file, add a vector in the format e.g. ![]() Keys are bound based on context (tag), which allows you to create contextual command schemes. To see the default keybindings you can execute the Settings: Default keymap command. To open the user keymap, execute the Settings: User keymap command. This will give you a list of all the clients Light Table knows how to start. ![]() Not all file types know how to eval, to find out what kinds of clients are available for evaluation, open the connect tab and press the “Add Connection” button. Within an editor, eval a single “block” (or form if you’re used to LISP) is bound to Cmd/Ctrl+Enter by default and evaling an entire file is bound to Cmd/Ctrl+Shift+Enter. Once a theme is provided you can set it with the aforementioned set-theme. To try third party themes, like these ones, download them and add an entry for it in user.behaviors file. Note that some themes listed there may not be available because LightTable may not be on the same CodeMirror version as the demo. ![]() To see what different themes look like, try the CodeMirror theme demo. To set the editor theme execute the Settings: User behaviors command, type and in between quotation marks type a theme name (auto-complete will help you here). Behaviors that are set by default can be subtracted/removed by prefixing the command with ‘-‘ e.g. If a command takes arguments append them after the command e.g. To add a behavior to your user.behaviors file, add a vector in the format e.g. This workflow lets you search for the behavior you want via the auto-complete and then the helper will show you what parameters are needed (if any) for that behavior.Īll settings in Light Table work this way and behaviors give you the ability to fundamentally change the functionality of Light Table. Then select Editor: Show line numbers behavior. For example, to turn on the line number gutter, find the :editor tag and in the square brackets type “number”. To modify your user behaviors, execute the Settings: User behaviors command and modify the file that is opened. Settings are represented as behaviors in Light Table. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |