-
Notifications
You must be signed in to change notification settings - Fork 567
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 the --ip and --port post processors for the --post serve #102
Comments
If you want to serve on another port I would suggest just converting to slides and then firering a real http server ( The post --server is really just for convenience, and building extra config option is a slippery slope that will becomme too complex./ |
Problem with that is that it doesn't render the slides correctly. It renders like a flat HTML file. |
Hum indeed. apparently it does not work anymore, the code use a tornado proxy to map reveal.js location. Fortunately the flags are already there (we all learn things everyday) !
Maybe |
I ran this:
and got this error:
Using and ip address of '*' still only serves the pages on the local host ip address. |
Hum. works for me but I'm on master. We might have had a recent bugfix to fix that. What if you use another port ? |
Working for me with latest released nbconvert.. |
I'm using Anaconda. Here's is the output of
I was able to finally resolve my issue by editing the Here is what I was able to get from running
|
I should also note, that running:
works, but doesn't do anything with changing the ip address. |
I think this is related with this: #103 (comment) Maybe something win-specific?? |
@KronoSKoderS can you test if jupyter/jupyter_core#54 fix this issue as well? |
I spoke a little too soon and tested in an unclean environment. I had made a custom change to serve.py in nbconvert/postprocessors like so:
Running the following command:
get's us half way there. The IP address does not change, however the port does. |
Yep, remember that there is no error if there is a typo.
you wrote an extra |
Well technically I did by bad copy pasting. |
My bad too... OK let's close it again... |
Perhaps we could add some docs here about how to change the port: |
Instead of serving to the
localhost
ip address, I would like to configure the ip address and port served for viewing the slide shows. This could be done by adding another post-processor to thenbconvert
command:jupyter nbconvert --to slides --post serve --ip X.X.X.X --port XXXX <notebook.ipynb
The default value would continue to be
127.0.0.0
but this would allow the usage of0.0.0.0
or any other custom IP address for serving the slide show on the local or public network. This would also allow for custom port incase the default 8000 is already used.The text was updated successfully, but these errors were encountered: