Giter VIP home page Giter VIP logo

monaco-editor-python's Introduction

monaco-editor-python

monaco-editor 编辑器使用 jsonrpc-ws-proxy 和 python-language-server,实现 python 代码提示功能

效果

运行步骤

运行环境

  • node.js 和 python 环境

准备工作

  • node.js 安装 npm 和 yarn

  • python 安装python-language-server

    pip install 'python-language-server[all]'
    

启动前端项目

  • 进入 web 目录,依次运行以下命令启动前端项目

    yarn
    yarn prepare
    yarn run start
    

启动语言代理

  • 方式一:Python 代理(推荐)

    进入server2目录,运行以下命令启动代理程序

    python examples/langserver_ext.py
    

    Github 仓库:https://github.com/shanghaobo/python-jsonrpc-server

  • 方式二:node.js 代理

    进入 server目录,依次运行以下命令启动代理程序

    npm install
    npm run prepare
    node dist/server.js --port 5000 --languageServers servers.yml
    
  1. 访问 http://localhost:3000

博客教程

https://www.qinyu.cc/archives/137.html

monaco-editor-python's People

Contributors

shanghaobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

monaco-editor-python's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.