From bce6846cd7cf6824a24f9fe2cf0e3d11d68dd10e Mon Sep 17 00:00:00 2001 From: jackiekazil Date: Mon, 17 Oct 2016 23:08:26 -0400 Subject: [PATCH] Updating port from 8000 to 8521. --- examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py | 2 +- examples/ColorPatches/Readme.md | 2 +- examples/ColorPatches/color_patches/server.py | 2 +- examples/ConwaysGameOfLife/Readme.md | 2 +- examples/EpsteinCivilViolence/Readme.md | 2 +- examples/Flockers/Readme.md | 4 ++-- examples/ForestFire/readme.md | 2 +- examples/Schelling/README.md | 2 +- examples/Shape Example/Readme.md | 2 +- examples/Shape Example/shape_model/server.py | 2 +- examples/WolfSheep/Readme.md | 2 +- mesa/visualization/ModularVisualization.md | 2 +- mesa/visualization/ModularVisualization.py | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py b/examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py index 13d214e1b2c..b454524e0e4 100644 --- a/examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py +++ b/examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py @@ -26,5 +26,5 @@ def agent_portrayal(agent): ) server = ModularServer(MoneyModel, [grid, chart], "Money Model", 100, 10, 10) -server.port = 8000 +server.port = 8521 server.launch() diff --git a/examples/ColorPatches/Readme.md b/examples/ColorPatches/Readme.md index 3ce4d7854f0..06268ecf724 100644 --- a/examples/ColorPatches/Readme.md +++ b/examples/ColorPatches/Readme.md @@ -24,7 +24,7 @@ To run the model interactively, run ``run.py`` in this directory. e.g. $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. ## Files diff --git a/examples/ColorPatches/color_patches/server.py b/examples/ColorPatches/color_patches/server.py index 9e28b094c41..877defe53a7 100644 --- a/examples/ColorPatches/color_patches/server.py +++ b/examples/ColorPatches/color_patches/server.py @@ -47,4 +47,4 @@ def color_patch_draw(cell): [CANVAS_ELEMENT], "Color Patches", GRID_ROWS, GRID_COLS) -# webbrowser.open('http://127.0.0.1:8000') # TODO: make this configurable +# webbrowser.open('http://127.0.0.1:8521') # TODO: make this configurable diff --git a/examples/ConwaysGameOfLife/Readme.md b/examples/ConwaysGameOfLife/Readme.md index e132eae330d..3d64636f6b9 100644 --- a/examples/ConwaysGameOfLife/Readme.md +++ b/examples/ConwaysGameOfLife/Readme.md @@ -15,7 +15,7 @@ To run the model interactively, run ``run.py`` in this directory: $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press ``run``. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press ``run``. ## Files diff --git a/examples/EpsteinCivilViolence/Readme.md b/examples/EpsteinCivilViolence/Readme.md index 9dd23ebb675..01d2e3be934 100644 --- a/examples/EpsteinCivilViolence/Readme.md +++ b/examples/EpsteinCivilViolence/Readme.md @@ -14,7 +14,7 @@ To run the model interactively, run ``EpsteinCivilViolenceServer.py`` in this di $ python EpsteinCivilViolenceServer.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. ## Files diff --git a/examples/Flockers/Readme.md b/examples/Flockers/Readme.md index 16866089a6c..b2e9597809e 100644 --- a/examples/Flockers/Readme.md +++ b/examples/Flockers/Readme.md @@ -11,7 +11,7 @@ Launch the model: $ python Flocker_Server.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. ## Files @@ -30,5 +30,5 @@ Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and p ``` $ python run.py ``` -* Visit your browser: http://127.0.0.1:8000/ +* Visit your browser: http://127.0.0.1:8521/ * In your browser hit *run* diff --git a/examples/ForestFire/readme.md b/examples/ForestFire/readme.md index 0cd353ee1d4..ac6ce4ebacf 100644 --- a/examples/ForestFire/readme.md +++ b/examples/ForestFire/readme.md @@ -12,7 +12,7 @@ Launch an interactive server by Running ``run.py``: $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. To view and run the model analyses, use the ``Forest Fire Model`` Notebook. diff --git a/examples/Schelling/README.md b/examples/Schelling/README.md index 3c065850322..37f1949d019 100644 --- a/examples/Schelling/README.md +++ b/examples/Schelling/README.md @@ -22,7 +22,7 @@ To run the model interactively, run ``run.py`` in this directory. e.g. $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. To view and run some example model analyses, launch the IPython Notebook and open ``analysis.ipynb``. Visualizing the analysis also requires [matplotlib](http://matplotlib.org/). diff --git a/examples/Shape Example/Readme.md b/examples/Shape Example/Readme.md index ee6d631bc46..8b346bb3460 100644 --- a/examples/Shape Example/Readme.md +++ b/examples/Shape Example/Readme.md @@ -31,7 +31,7 @@ To run the model interactively, run ``run.py`` in this directory. e.g. $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. ## Files diff --git a/examples/Shape Example/shape_model/server.py b/examples/Shape Example/shape_model/server.py index 0e1adf26fa2..93f428d7071 100644 --- a/examples/Shape Example/shape_model/server.py +++ b/examples/Shape Example/shape_model/server.py @@ -38,7 +38,7 @@ def launch_shape_model(): server = ModularServer(ShapesModel, [grid], "Shape Model Example", num_agents, width, height) server.max_steps = 0 - server.port = 8000 + server.port = 8521 server.launch() if __name__ == "__main__": diff --git a/examples/WolfSheep/Readme.md b/examples/WolfSheep/Readme.md index 2ef5579370b..8ec0c49ef40 100644 --- a/examples/WolfSheep/Readme.md +++ b/examples/WolfSheep/Readme.md @@ -30,7 +30,7 @@ To run the model interactively, run ``run.py`` in this directory. e.g. $ python run.py ``` -Then open your browser to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) and press Reset, then Run. +Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. ## Files diff --git a/mesa/visualization/ModularVisualization.md b/mesa/visualization/ModularVisualization.md index caa802a3fbc..b44f54be48e 100644 --- a/mesa/visualization/ModularVisualization.md +++ b/mesa/visualization/ModularVisualization.md @@ -12,7 +12,7 @@ For example, if you have a model `MyModel`, and two elements, *canvas_vis* and * server = ModularServer(MyModel, [canvas_vis, graph_vis]) server.launch() ``` -Then you will be able to view the elements in your browser at http://127.0.0.1:8000/. If you prefer a different port, for example 8887, you can pass it to the server as an argument. +Then you will be able to view the elements in your browser at http://127.0.0.1:8521/. If you prefer a different port, for example 8887, you can pass it to the server as an argument. ```python server.launch(8887) ``` diff --git a/mesa/visualization/ModularVisualization.py b/mesa/visualization/ModularVisualization.py index d9ba2458e09..42609ac74aa 100644 --- a/mesa/visualization/ModularVisualization.py +++ b/mesa/visualization/ModularVisualization.py @@ -187,7 +187,7 @@ class ModularServer(tornado.web.Application): model_name = "Mesa Model" model_cls = None # A model class portrayal_method = None - port = 8000 # Default port to listen on + port = 8521 # Default port to listen on canvas_width = 500 canvas_height = 500 grid_height = 0