Skip to content

Commit

Permalink
Updating port from 8000 to 8521.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiekazil committed Oct 18, 2016
1 parent 737b550 commit bce6846
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/Boltzmann_Wealth_Model/Viz_MoneyModel.py
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion examples/ColorPatches/Readme.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/ColorPatches/color_patches/server.py
Expand Up @@ -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
2 changes: 1 addition & 1 deletion examples/ConwaysGameOfLife/Readme.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/EpsteinCivilViolence/Readme.md
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions examples/Flockers/Readme.md
Expand Up @@ -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

Expand All @@ -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*
2 changes: 1 addition & 1 deletion examples/ForestFire/readme.md
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/Schelling/README.md
Expand Up @@ -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/).

Expand Down
2 changes: 1 addition & 1 deletion examples/Shape Example/Readme.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/Shape Example/shape_model/server.py
Expand Up @@ -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__":
Expand Down
2 changes: 1 addition & 1 deletion examples/WolfSheep/Readme.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion mesa/visualization/ModularVisualization.md
Expand Up @@ -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)
```
Expand Down
2 changes: 1 addition & 1 deletion mesa/visualization/ModularVisualization.py
Expand Up @@ -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
Expand Down

0 comments on commit bce6846

Please sign in to comment.