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

Running mercury notebook with '--no-browser' option #443

Open
mbsherma opened this issue Apr 30, 2024 · 2 comments
Open

Running mercury notebook with '--no-browser' option #443

mbsherma opened this issue Apr 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mbsherma
Copy link

mbsherma commented Apr 30, 2024

Whenever I run a mercury app, I've found that it automatically opens a browser window on whichever port I specify. Is there a way to use 'mercury run' without automatically opening the browser? I'm looking for something similar to the jupyter notebook `--no-browser' flag, which has a similar function. The command I currently use is below:

mercury run notebook.ipynb localhost:8845

Which gives the following output:

`

 _ __ ___   ___ _ __ ___ _   _ _ __ _   _ 
| '_ ` _ \ / _ \ '__/ __| | | | '__| | | |
| | | | | |  __/ | | (__| |_| | |  | |_| |
|_| |_| |_|\___|_|  \___|\__,_|_|   \__, |
                                     __/ |
                                    |___/ 

Version: 2.3.10
The notebook notebook.ipynb will be updated
Successfully updated a notebook (id:7)
Performing system checks...

System check identified no issues (0 silenced).
April 30, 2024 - 16:11:17
Django version 4.2.3, using settings 'server.settings'
Starting ASGI/Daphne version 4.1.0 development server at http://localhost:8845/
Quit the server with CONTROL-C.

`

Thanks in advance!

@pplonski
Copy link
Contributor

Hi @mbsherma ,

Thanks for opening the issue. I like the idea of adding a flag, we will implement it @apjanusz

@pplonski pplonski added the enhancement New feature or request label Apr 30, 2024
@mbsherma
Copy link
Author

Great! I think it'll be a useful function, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants