Skip to content

User guide (in PDF) accessible in Trame web application #472

Answered by jourdain
karelvrabeckv asked this question in Q&A
Discussion options

You must be logged in to vote

While they are better option, using the LocalFileManager you could do the following

html.A("User Manual", href= asset_manager.user_guide, download=True)

A better option would be to create a trame module to serve your pdf over http so you could do

server.enable_module(dict(serve=dict("docs", str(Path(__file__).parent.resolve())))

html.A("User Manual", href="docs/user_guide.pdf", download=True)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@jourdain
Comment options

@lahwaacz
Comment options

@jourdain
Comment options

@lahwaacz
Comment options

@jourdain
Comment options

Answer selected by karelvrabeckv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants