Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108497643
JupyterOpen
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Apr 17, 02:53
Size
405 B
Mime Type
text/x-python
Expires
Sat, Apr 19, 02:53 (2 d)
Engine
blob
Format
Raw Data
Handle
25604047
Attached To
rJUPYTERINTRO Jupyter Notebook Introduction
JupyterOpen
View Options
#!/usr/bin/env python
#
# Opena Jupyter Notebook on a server running from home directory
#
# Author: Jan Krause
# Licence: GPL
# Date: 2016-03-25
url = 'http://localhost:8888/tree'
import webbrowser
import urllib
import sys
import os
if len(sys.argv)>1:
currdir = os.getcwd()
home = os.path.expanduser("~")
url += currdir.replace(home,'') + '/' + sys.argv[1]
webbrowser.open_new_tab(url)
Event Timeline
Log In to Comment