Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110370754
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
Sat, Apr 26, 00:45
Size
405 B
Mime Type
text/x-python
Expires
Mon, Apr 28, 00:45 (2 d)
Engine
blob
Format
Raw Data
Handle
25813332
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