https://github.com/juliacomputing/dashtutorials
Tutorials for running Dash.jl apps on JuliaHub
https://github.com/juliacomputing/dashtutorials
Last synced: 9 months ago
JSON representation
Tutorials for running Dash.jl apps on JuliaHub
- Host: GitHub
- URL: https://github.com/juliacomputing/dashtutorials
- Owner: JuliaComputing
- Created: 2023-03-23T12:38:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T13:35:43.000Z (about 2 years ago)
- Last Synced: 2025-01-05T16:08:26.170Z (10 months ago)
- Language: Julia
- Size: 43.9 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dash.jl Tutorials
This is a set of Dash.jl tutorials for use on the JuliaHub platform.
## Additions for deployment on JuliaHub IDE
The following changes are required to run a Dash.jl app from the
JuliaHub IDE:
### `dash` initialization
The following call should be changed from:
```
app = dash()
```
to:
```
port = 8888
app = dash(requests_pathname_prefix="/proxy/$port/")
```
By default, JuliaHub IDE proxies the requests, so we need to
specify this path name to the Dash.jl so it may respond correctly.
### `run_server` address:
The following call should be changed from:
```
run_server(app, 0.0.0.0, port, debug=true)
```
to:
```
using Sockets
run_server(app, Sockets.localhost, port, debug=true)
```
This will allow the server to respond correctly.