How do I Install VE?

本文提供了VE 1.1.0.1版本与Eclipse 3.1.2配合使用的详细安装步骤,包括通过Update Manager下载及安装必要的组件如EMFSDK 2.1.2和GEF 3.1.1等。

VE releases can now be downloaded through Update Manager.

VE 1.1.0.1 with Eclipse 3.1.2 has become a little complicated because of some Eclipse update site restructuring that has taken place. Because of this here are the instructions for VE 1.1.0.1:

  1. Install Eclipse SDK 3.1.2 SDK. Download the appropriate zip file for your system.
  2. Unzip into a clean directory
  3. Run the eclipse.exe out of the eclipse directory and select/create a workspace
  4. Do Help->Software Updates->Find and Install...
  5. Select the Search for New features to install... and hit the Next button
  6. Click on New Remote Site... button, and add this site (name it VE): http://update.eclipse.org/tools/ve/updates/1.0
  7. Click on New Remote Site... button, and add this site (name it EMF): http://update.eclipse.org/tools/emf/updates
  8. Click on New Remote Site... button, and add this site (name it Old Eclipse): http://update.eclipse.org/updates/3.0
  9. Select VE, EMF, and Old Eclipse, and Hit Finish
  10. Select the mirrors to use as they are asked for
  11. Expand the tree VE->VE->Visual Editor SDK 1.1.0.1, and hit the checkbox on it
  12. Expand EMF tree, EMF->EMF SDK 2.1.2->EMF SDK 2.1.2 and hit the checkbox on it
  13. Expand Old Eclipse->GEF 3.1.1->Graphical Editing Framework 3.1.1 and hit the checkbox on it
  14. Hit Next, accept the licences, hit Next, hit Finish

This will then allow a clean complete installation of VE

With Eclipse 3.2 there is Callisto, which makes it all simpler and one-stop shopping. See Callisto.

Or you can download the version of VE that matches your installation of Eclipse. (The SDK download contains documentation and source, while the runtime download does not.) You will also need to download the matching version of GEF and EMF. The download page will give this information for you. Exit Eclipse and unzip into the directory that eclipse is installed into. For example, if you have installed into "D:/XYZ/eclipse", you would unzip into "D:/XYZ". Restart Eclipse using the -clean option (only do this once) to clear the cache and verify that everything is installed. To do so, go to Help->About Eclipse Platform->Feature Details. Check the following entries:

Provider Feature id
Eclipse.org org.eclipse.jem
Eclipse.org org.eclipse.jem.source (SDK only)
Eclipse.org org.eclipse.ve
Eclipse.org org.eclipse.ve.source (SDK only)
Eclipse.org org.eclipse.ve.sdk (SDK only)

Adding Dash into PyQt5 involves integrating the Plotly library with a PyQt5 application to create interactive web-based interfaces. Here's a step-by-step guide on how to do it: 1. **Install required libraries**: - First, you need to have PyQt5 installed for creating the GUI part. You can install it using pip: `pip install PyQt5`. - Install Dash and its dependencies: `pip install dash dash-core-components dash-html-components` 2. **Set up a Dash app**: Create a new Python file (e.g., `dash_qt_app.py`) and import necessary modules from Dash like `dash`, `dash_core_components`, and `dash_html_components`. Set up your basic Dash app. ```python import dash import dash_core_components as dcc import dash_html_components as html app = dash.Dash(__name__) app.layout = html.Div([ # Add your components here, e.g., graphs or widgets ]) ``` 3. **Create a PyQt5 window**: In another module or the same one, define a PyQt5.QtWidgets QApplication and QMainWindow. ```python from PyQt5.QtWidgets import QApplication, QMainWindow app = QApplication([]) # Create PyQt5 app main_window = QMainWindow() # Create a main window ``` 4. **Embedding Dash in PyQt5**: Use an external renderer provided by Dash called `dash.qt`, which allows rendering Dash apps in a QWebView widget. ```python from dash.dependencies import Input, Output import dash_html_components as html external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] # Dash layout dash_layout = dash.dcc.Loading( id='loading', type='default', children=[dcc.Graph(id='example-graph')] ) # Qt widget dash_view = dash.qt_renderer.DashQtView(app, dash_layout) ``` 5. **Displaying the Dash view**: Set the Dash view inside your PyQt5 QMainWindow and show it. ```python main_window.setCentralWidget(dash_view) # Set the Dash view as the central widget main_window.show() ``` 6. **Running the application**: Start both the Dash app and the PyQt5 app. ```python if __name__ == '__main__': app.run_server(debug=True) # Run the Dash server app.exec_() # Run the PyQt5 event loop ``` With this setup, you've integrated Dash into PyQt5, allowing you to display interactive plots and other Dash components in a GUI context.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值