Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line interface to allow scripts to be run from sasview.exe #2278

Closed
wants to merge 2 commits into from

Conversation

pkienzle
Copy link
Contributor

Allow scripts from the command line:

sasview -m module [args...]
    Run module as main.
sasview -c "python statements"
    Execute python statements with sasview libraries available.
sasview -i 
    Start ipython interpreter.
sasview script [args...]
    Run script with sasview libraries available
sasview
    Start sasview gui

Partially addresses #2237

@pkienzle
Copy link
Contributor Author

We could also add a --jupyter command line option which opens up a server on localhost with everything setup. It'll increase the size of our installed package though, especially if we include jupyterhub with a nodejs distribution.

@pkienzle
Copy link
Contributor Author

I don't have a windows box handy so couldn't test the installed package on windows.

Do we need multiprocessing freeze support?

I don't know how modern qt apps handle console vs. gui support. Maybe need to do something like creating a separate sasviewcom.exe for the console.

@pkienzle
Copy link
Contributor Author

Oops... accidentally did "git commit -a" and this includes fixes for #2228 which I didn't clear out first. Also I noticed that we no longer have a compiled module so I tweaked the doc build a bit, and perhaps broke it. I'll look into separating these to different PRs.

@pkienzle
Copy link
Contributor Author

Replaced with #2280.

@pkienzle pkienzle closed this Oct 25, 2022
@pkienzle pkienzle deleted the ticket-2237-cli branch November 4, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant