Note
This document assumes you've already successfully installed Celbridge. For detailed installation instructions, see the Installation section of the project's README.
Celbridge has two main interfaces: the home menu, where you create and open projects, and the Celbridge editor, where you work directly in a project.
If you have no existing project, the home menu will open automatically when Celbridge is launched. You can switch between the home menu and Celbridge editor using the buttons in the navigation bar to the left of the main interface.
Switching between the home menu and Celbridge editor
You can create and open Celbridge projects from either the home menu, or the hamburger menu at the top of the navigation bar to the left of the main interface.
Let's create a project from the home menu.
- Open the home menu.
- Click
New project. - Name your project.
Note
Currently, project names cannot contain spaces.
- Choose a folder to place your project in, and select whether you want Celbridge to create a subfolder with the same name as the project.
The steps to create a project from the hamburger menu are identical: just click the menu and select New project.
Let's explore the Celbridge editor. Open the project you created in the Creating a Project step. From left to right, top to bottom, the sections of the Celbridge editor are as follows:
- The navigation bar lets you easily switch between different menus and project contexts.
- The hamburger menu at the top of the navigation bar lets you quickly create, open, or reload a project.
- The home button navigates to the home menu.
- The explorer button navigates to the Celbridge editor.
- The globe-like community button opens the Celbridge community forums as a web application within Celbridge.
- The settings button lets you change application settings.
- The explorer panel lists all files in the project. Add existing files by dragging and dropping them from the Windows File Explorer.
- Run Python files using the
Runoption. Right-click on a Python file in the Explorer panel and selectRun. The Console panel prints any output from the script. - Open a file by right-clicking it and selecting
Open. - Perform various options on files using the
Editoption. - Add a new file or folder by right-clicking anywhere in the Explorer panel and selecting an option from the
Adddropdown. The supported options are a folder, Python script, Excel file, Markdown file, web application file, or plain text file of any format. - Open a file in the Windows File Explorer or the associated system application using the
Open inoption.
- View and edit open documents in the documents panel. Double-click on a file in the explorer panel to open it in the documents panel.
- You can tab between multiple open documents.
- Celbridge includes a fully-featured text editor based on Monaco, the editor used in Visual Studio Code.
- The text editor supports all popular text formats and programming languages.
- The documents panel also provides a live preview for Markdown.
- The inspector panel allows you to perform document-specific actions. For example, you can run a Python script that edits the data of a spreadsheet from the spreadsheet inspector panel.
- The console is Celbridge's integrated Python interpreter. Here you can run Python commands and scripts.
You can easily add new Python versions and packages from the Celbridge project settings file. The project settings file is named yourprojectname.celbridge, and is visible in the explorer panel.
Let's add the data analysis library Pandas to our Celbridge project.
- Open the
.celbridgeproject settings file by double-clicking on it in the explorer panel. - Under the
packageskey in the[python]section, type"pandas":
- Reload the project by navigating to the hambuger menu in the top left and clicking
Reload project. - The console window will show Pandas being installed.
Celbridge includes an example project that demonstrates the core features of Celbridge. Let's take a look at it.
- From the home menu, click
New example project. - Name the project and select a location for it.
- Celbridge will generate a new example project. Each folder in the explorer panel of this project contains an example of a core feature of Celbridge. For example, the
01_markdownfolder demonstrates how to work with Markdown files. - To get started with each feature, take a look at the
readme.mdfiles contained in the example folders.
The community forums are a great place to ask for help. You can access them at any time from the community button in the navigation bar.
To report bugs, please open a ticket.
