Skip to content

Commit 7dbfb82

Browse files
authored
Merge pull request #12 from me020523/master
customize webapp port Thanks for the pull request
2 parents db837b9 + 39ee4d2 commit 7dbfb82

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

btplotting/optbrowser.py

100644100755
+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
15
from collections import defaultdict
26
from functools import partial
37

@@ -21,12 +25,13 @@ def __init__(self, app, optresults, usercolumns=None,
2125
self._sortasc = sortasc
2226
self._optresults = optresults
2327

24-
def start(self, ioloop=None):
28+
def start(self, ioloop=None, port=8080):
2529
webapp = Webapp(
2630
'Backtrader Optimization Result',
2731
'basic.html.j2',
2832
self._app.params.scheme,
29-
self.build_optresult_model)
33+
self.build_optresult_model,
34+
port=port)
3035
webapp.start(ioloop)
3136

3237
def _build_optresult_selector(self, optresults):

0 commit comments

Comments
 (0)