Skip to content

Latest commit

 

History

History

code_editor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Code Editor Example

Minimal example showing how to have a web based code editor. This example also shows how you can separate out your code into components inspired by React.

Setup

Install the requirements using pip:

pip install -r requirements.txt

To use the code editor you need to have a fireworks API key in your .env file to have autocompletions work.

Once you do, you can run the server:

python code_editor.py

Open your browser to http://localhost:5001 and you should see the chess board. Currently only Javascript, Python, HTML, and CSS syntax highlighting is implemented. Completions are triggered on . and key down events. Saving the code is not implemented yet.