👉👉👉 This extension is still under development.
👉👉👉 JDK 1.8+ is required in your system.
mlsql-lang is a Visual Studio Code extension that allows you to run MLSQL code in both Script/Notebook interface.
v0.0.5
- ✅ Fix opening .mlsqlnb do not trigger mlsql language server
-
✅ More control parameters on engine
-
✅ New include type
project
is support -
✅ !pyInclude also support
project
type. -
✅ Support html/png renderer in notebook mode.
-
✅ More mlsql code examples
- ✅ mlsql-lang grammar highlight
- ✅ Better table renderer
- ✅ mlsql-lang code autocomplete
- JDK 1.8+ is required in your system. JDK8-Mac /JDK8-Linux
- Visuial Studio Code
mlsql-lang is only tested in MacOS/Linux though this extension works in Windows.
this extension contains mlsql-lang already.
Download extension from https://mlsql-downloads.kyligence.io/2.1.0/mlsql-0.0.5.vsix
or http://download.mlsql.tech/mlsql-0.0.5.vsix
- run command
code --install-extension mlsql-0.0.5.vsix
- Or Just open
mlsql-0.0.5.vsix
in vscode in market panel
- Search
mlsql
in market and install it. - Download mlsql-lang from
https://mlsql-downloads.kyligence.io/2.1.0/
- Extract mlsql-lang and configure the path by
engine.home
in.mlsq.config
.
- Install extension.
- Create a directory, then open it with Visual Studio Code.
- File extensions
.mlsql
or.mlsqlnb
are supported. - Once you open a mlsql file, the extension will be activated.
- If not auto activate, click right left corner and click language select button, choose MLSQL.
- Open command
MLSQL: run
to execute MLSQL script:
- Here is notebook example:
Run command in vscode: Developer: Reload Window
You can configure MLSQL Lang server with file .mlsql.config
in your project (root path).
For example:
engine.home=...../mlsql-lang/mlsql-app_2.4-2.1.0-SNAPSHOT
engine.url=http://127.0.0.1:9003
engine.owner=admin
engine.memory=2048m
user.access_token=123
Excel/Shell is build-in support in this extention. You can load excel file like this:
The plugins repo: mlsql-plugins
You can install them like this:
If you reopen the project, when notebook is open before the mlsql-lang is activated,then the following error will happen:
Just close/open the notebook(.mlsqlnb) and everything goes Ok.
Sometimes the lang server will not quit properly when you close your workspace. Try using flowing command to find the pid and kill it.
ps -ef |grep 'tech.mlsql.plugins.langserver.launchers.stdio.Launcher'