Skip to content

Commit

Permalink
Merge pull request #46 from hrntsm/feature/support-optuna-dashboard
Browse files Browse the repository at this point in the history
Feature/support optuna dashboard
  • Loading branch information
hrntsm authored Jun 4, 2022
2 parents b01fd1a + 4b92fdf commit 10c3393
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -451,5 +451,4 @@ $RECYCLE.BIN/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
Tunny/Lib/
!.vscode/extensions.json
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Please see [here](https://github.com/hrntsm/Tunny/releases) for the data release
- Feature to display results side by side in a viewport like a fish market.
- Version info to result rdb file
- To avoid problems with different versions in the future
- Support Optuna-Dashboard
- Real-time Web Dashboard for Optuna.
- https://github.com/optuna/optuna-dashboard#features

### Change

Expand Down
Binary file added Tunny/Lib/GalapagosComponents.dll
Binary file not shown.
13 changes: 13 additions & 0 deletions Tunny/UI/OptimizationWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Tunny/UI/OptimizeWindowTab/ResultTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@

using Tunny.Optimization;
using Tunny.Solver;
using Tunny.Util;

namespace Tunny.UI
{
public partial class OptimizationWindow : Form
{
private void DashboardButton_Click(object sender, EventArgs e)
{
var dashboard = new Process();
dashboard.StartInfo.FileName = PythonInstaller.GetEmbeddedPythonPath() + @"\Scripts\optuna-dashboard.exe";
dashboard.StartInfo.Arguments = @"sqlite:///" + _component.GhInOut.ComponentFolder + @"\Tunny_Opt_Result.db";
dashboard.StartInfo.UseShellExecute = false;
dashboard.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
dashboard.Start();

var browser = new Process();
browser.StartInfo.FileName = @"http://127.0.0.1:8080/";
browser.StartInfo.UseShellExecute = true;
browser.Start();
}

private void VisualizeButton_Click(object sender, EventArgs e)
{
var optuna = new Optuna(_component.GhInOut.ComponentFolder);
Expand Down

0 comments on commit 10c3393

Please sign in to comment.