Skip to content

Commit

Permalink
Update examples.md to make the test examlpe more generic.
Browse files Browse the repository at this point in the history
replaced the hardwired path to the python interpreter with the more generic sys.executable that should work on all platforms.
  • Loading branch information
dragz authored Jul 25, 2024
1 parent 74a8592 commit 81f5fd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ Projects can also add the `jupyter-server-proxy` topic to the GitHub repository

If you just want to test if the proxy config is correct you can put the following into `$HOME/.jupyter/jupyter_server_config.py`:
```python
import sys
c.ServerProxy.servers.update({
"pythonweb": {
"command": ["/usr/local/anaconda/bin/python", "-m", "http.server", "{port}"],
"command": [sys.executable, "-m", "http.server", "{port}"],
"port": 9081,
"absolute_url": False
}
Expand Down

0 comments on commit 81f5fd5

Please sign in to comment.