在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tlienart/LiveServer.jl开源软件地址:https://github.com/tlienart/LiveServer.jl开源编程语言:Julia 98.0%开源软件介绍:Live Server for JuliaThis is a simple and lightweight development web-server written in Julia, based on HTTP.jl. It has live-reload capability, i.e. when modifying a file, every browser (tab) currently displaying the corresponding page is automatically refreshed. LiveServer is inspired from Python's InstallationTo install it in Julia ≥ 1.3, use the package manager with
For Julia
Make it a shell commandLiveServer is a small package and fast to load with one main functionality (
you can then use UsageThe main function julia> using LiveServer
julia> LiveServer.example() # creates an "example/" folder with some files
julia> cd("example")
julia> serve() # starts the local server & the file watching
✓ LiveServer listening on http://localhost:8000/ ...
(use CTRL+C to shut down) Open a Browser and go to In the REPL:
In the terminal:
Open a browser and go to https://localhost:8001/ to see the rendered content of index.html or, if it doesn't exist, the content of the directory.
You can set the port to a custom number.
This is similar to the Serve docs
Assuming you are in $ julia
pkg> activate docs
julia> using YourPackage, LiveServer
julia> servedocs()
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: ExpandTemplates: expanding markdown templates.
...
└ Deploying: ✘
✓ LiveServer listening on http://localhost:8000/ ...
(use CTRL+C to shut down) Open a browser and go to To run the server with one line of code, run:
Note: this works with Literate.jl as well. See the docs. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论