I know I can just throw a well-written script into the server and run it by command julia myScript.jl, or I can start julia and type some little code directly in the REPL. But is that all?
I would like to learn some better ways to use Julia on Linux server, just like I use it in VS Code on Windows, is there any?
For example, what IDE should I use, what packages should I install to improve the user experience (do packages OhMyREPL.jl, Revise.jl, etc still work?) , and what workflow is better to follow? And so on.
If you want to connect remotely, have you tried the web based UIs?
There is Pluto or Jupyter notebook for notebook style programming, or JupyterLab for an experience that is closer to an IDE.
Everything that works on Windows works on Linux, too.
I’m confused by the fact that you say “Linux server”, but then ask if packages meant for interactive use still work. Presumably it’s not a server if you want interactivity? Why do you use the word “server”?
I am going to be slightly rude here. For Julia, Linux is not ‘special’ in any way.
If you could say more about what you are trying to achieve perhaps?
Also do try a Pluto notebook - I think that project is fantastic.
If you have firewalled access to a Linux server and only have the ssh port open you can ‘tunnel’ traffic to a Pluto notebook port. However let us assume you can use the port without tunnelling.
For Pluto or Jupyter, you just need to install the packages on the server and run them. Also you might have to ensure that the UIs accept a connection from outside the server, not sure if it is done by default.
Then you can access them from any web browser in the same network as the server and the computations will run on the server, while the UI is in your browser.
But it is a bit depending on how you want to use your Julia server. Lets say, you want to have your raspberry pi run Julia and do some coding from time to time? Then I would go with Jupyter or Pluto.
Is your server serving only you, or do you plan to have multiple users access and run Julia on that server at the same time?
Thank you for your patience! Sorry, maybe my question is too presumptuous. As a Julia new learner, I just want to learn some good ways from other predecessors to use Julia.
At present, I can only access the server through Xshell, and I would like to implement the method you mentioned remotely from the laptop, but I don’t know what prerequisites are required.
Are you admin on the server? If it is not a production server I would say you could just give Pluto a try.
The package is registered, so if you are on your server, you can just “]add Pluto”. Take a look here GitHub - fonsp/Pluto.jl: 🎈 Simple reactive notebooks for Julia . If you do Pluto.run(;host = “0.0.0.0”) tf will listen to a port on that machine, so you, from your Laptop, try going into a browser and do "http://{ip_of_server}:{port}