From yw5aj at virginia.edu Fri Apr 3 22:35:42 2015 From: yw5aj at virginia.edu (Yuxiang Wang) Date: Fri, 3 Apr 2015 22:35:42 -0400 Subject: [IPython-dev] How did Cython magic know to include np.get_include()? Message-ID: Hi all, When I use %%cython magic, it automatically knows to include the np.get_include(), which works really great. But just being curious - how was that achieved? Did the code detect whether numpy was imported, and if yes it will add np.get_include to the include_dirs? Shawn -- Yuxiang "Shawn" Wang Gerling Research Lab University of Virginia yw5aj at virginia.edu +1 (434) 284-0836 https://sites.google.com/a/virginia.edu/yw5aj/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Fri Apr 3 22:49:48 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Fri, 3 Apr 2015 19:49:48 -0700 Subject: [IPython-dev] How did Cython magic know to include np.get_include()? In-Reply-To: References: Message-ID: On Fri, Apr 3, 2015 at 7:35 PM, Yuxiang Wang wrote: > Hi all, > > When I use %%cython magic, it automatically knows to include the > np.get_include(), which works really great. But just being curious - how > was that achieved? Did the code detect whether numpy was imported, and if > yes it will add np.get_include to the include_dirs? > > You may be interested in the implementation: https://github.com/cython/cython/blob/9e956fa59e3899a5fae06519d3ca9728db52adb0/Cython/Build/IpythonMagic.py#L192 > Shawn > > -- > Yuxiang "Shawn" Wang > Gerling Research Lab > University of Virginia > yw5aj at virginia.edu > +1 (434) 284-0836 > https://sites.google.com/a/virginia.edu/yw5aj/ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yw5aj at virginia.edu Fri Apr 3 23:09:27 2015 From: yw5aj at virginia.edu (Yuxiang Wang) Date: Fri, 3 Apr 2015 23:09:27 -0400 Subject: [IPython-dev] How did Cython magic know to include np.get_include()? In-Reply-To: References: Message-ID: Aaaahh thanks! I was looking for this piece of code. This is exactly what I am asking for. Thanks Nathan! For future interested readers: in line 245, it says very clear that if 'numpy' in code: import numpy c_include_dirs.append(numpy.get_include()) Shawn On Fri, Apr 3, 2015 at 10:49 PM, Nathan Goldbaum wrote: > > > On Fri, Apr 3, 2015 at 7:35 PM, Yuxiang Wang wrote: >> >> Hi all, >> >> When I use %%cython magic, it automatically knows to include the >> np.get_include(), which works really great. But just being curious - how was >> that achieved? Did the code detect whether numpy was imported, and if yes it >> will add np.get_include to the include_dirs? >> > > You may be interested in the implementation: > > https://github.com/cython/cython/blob/9e956fa59e3899a5fae06519d3ca9728db52adb0/Cython/Build/IpythonMagic.py#L192 > >> >> Shawn >> >> -- >> Yuxiang "Shawn" Wang >> Gerling Research Lab >> University of Virginia >> yw5aj at virginia.edu >> +1 (434) 284-0836 >> https://sites.google.com/a/virginia.edu/yw5aj/ >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Yuxiang "Shawn" Wang Gerling Research Lab University of Virginia yw5aj at virginia.edu +1 (434) 284-0836 https://sites.google.com/a/virginia.edu/yw5aj/ From shipman.william at gmail.com Mon Apr 6 13:09:22 2015 From: shipman.william at gmail.com (William Shipman) Date: Mon, 6 Apr 2015 19:09:22 +0200 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file Message-ID: Hi everyone, Several months ago, when opening a notebook, the kernel running that notebook would use the notebook's folder as its working directory. This allowed me to save figures etc. in the same folder as my notebook without having to hardcode the location of that notebook. Somewhere in the intervening months, either I have unintentionally disabled that or something changed in IPython. I am currently using version 2.3. Please advise as to what setting(s) I need to use. Regards, William. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Apr 6 13:42:24 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 6 Apr 2015 10:42:24 -0700 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: Starting the kernel in the same directory as the notebook continues to be the default behavior. Can you perhaps share your notebook configuration? -MinRK On Mon, Apr 6, 2015 at 10:09 AM, William Shipman wrote: > Hi everyone, > > Several months ago, when opening a notebook, the kernel running that > notebook would use the notebook's folder as its working directory. This > allowed me to save figures etc. in the same folder as my notebook without > having to hardcode the location of that notebook. > > Somewhere in the intervening months, either I have unintentionally > disabled that or something changed in IPython. I am currently using version > 2.3. Please advise as to what setting(s) I need to use. > > Regards, > William. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shipman.william at gmail.com Mon Apr 6 13:51:13 2015 From: shipman.william at gmail.com (William Shipman) Date: Mon, 6 Apr 2015 19:51:13 +0200 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: I have a central folder 'C:\Users\wjs\git\IPython' that has sub-folders for major projects, e.g. 'phd-ipython-notebooks' for everything PhD related. 'phd-ipython-notebooks' has sub-folders for different reports, different chapters, etc. In the past, I'd start IPython notebook, navigate to 'phd-ipython-notebooks\X\Y.ipynb' and the working directory would be 'C:\Users\wjs\git\IPython\phd-ipython-notebooks\X' I'm using WinPython, with IPython installed from http://www.lfd.uci.edu/~gohlke/pythonlibs/ On 6 April 2015 at 19:42, MinRK wrote: > Starting the kernel in the same directory as the notebook continues to be > the default behavior. Can you perhaps share your notebook configuration? > > -MinRK > > On Mon, Apr 6, 2015 at 10:09 AM, William Shipman < > shipman.william at gmail.com> wrote: > >> Hi everyone, >> >> Several months ago, when opening a notebook, the kernel running that >> notebook would use the notebook's folder as its working directory. This >> allowed me to save figures etc. in the same folder as my notebook without >> having to hardcode the location of that notebook. >> >> Somewhere in the intervening months, either I have unintentionally >> disabled that or something changed in IPython. I am currently using version >> 2.3. Please advise as to what setting(s) I need to use. >> >> Regards, >> William. >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Apr 6 13:58:24 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 6 Apr 2015 10:58:24 -0700 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: You have described the current default behavior of IPython. So I'm wondering if you have anything in your `ipython_notebook_config.py` that is causing the behavior to be something different.? The file will be in `~/.ipython/profile_default/ipython_notebook_config.py`. -MinRK -------------- next part -------------- An HTML attachment was scrubbed... URL: From shipman.william at gmail.com Mon Apr 6 14:07:42 2015 From: shipman.william at gmail.com (William Shipman) Date: Mon, 6 Apr 2015 20:07:42 +0200 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: To summarise the non-default settings: import webbrowser webbrowser.register('firefox', None, webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe')) c.NotebookApp.browser = 'firefox' c.ZMQInteractiveShell.colors = 'Linux' c.NotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' c.FileNotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' I've also attached the complete 'ipython_notebook_config.py' in case it helps. On 6 April 2015 at 19:58, MinRK wrote: > You have described the current default behavior of IPython. So I'm > wondering if you have anything in your `ipython_notebook_config.py` that is > causing the behavior to be something different.? The file will be in > `~/.ipython/profile_default/ipython_notebook_config.py`. > > -MinRK > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # Configuration file for ipython-notebook. c = get_config() #------------------------------------------------------------------------------ # NotebookApp configuration #------------------------------------------------------------------------------ # NotebookApp will inherit config from: BaseIPythonApplication, Application # The url for MathJax.js. # c.NotebookApp.mathjax_url = '' # The IP address the notebook server will listen on. # c.NotebookApp.ip = '127.0.0.1' # The base URL for the notebook server. # # Leading and trailing slashes can be omitted, and will automatically be added. # c.NotebookApp.base_project_url = '/' # Create a massive crash report when IPython encounters what may be an internal # error. The default is to append a short message to the usual traceback # c.NotebookApp.verbose_crash = False # The random bytes used to secure cookies. By default this is a new random # number every time you start the Notebook. Set it to a value in a config file # to enable logins to persist across server sessions. # # Note: Cookie secrets should be kept private, do not share config files with # cookie_secret stored in plaintext (you can read the value from a file). # c.NotebookApp.cookie_secret = '' # The number of additional ports to try if the specified port is not available. # c.NotebookApp.port_retries = 50 # Whether to open in a browser after starting. The specific browser used is # platform dependent and determined by the python standard library `webbrowser` # module, unless it is overridden using the --browser (NotebookApp.browser) # configuration option. # c.NotebookApp.open_browser = True # The notebook manager class to use. # c.NotebookApp.notebook_manager_class = 'IPython.html.services.notebooks.filenbmanager.FileNotebookManager' # The date format used by logging formatters for %(asctime)s # c.NotebookApp.log_datefmt = '%Y-%m-%d %H:%M:%S' # The base URL for the kernel server # # Leading and trailing slashes can be omitted, and will automatically be added. # c.NotebookApp.base_kernel_url = '/' # The port the notebook server will listen on. # c.NotebookApp.port = 8888 # Whether to overwrite existing config files when copying # c.NotebookApp.overwrite = False # Whether to enable MathJax for typesetting math/TeX # # MathJax is the javascript library IPython uses to render math/LaTeX. It is # very large, so you may want to disable it if you have a slow internet # connection, or for offline use of the notebook. # # When disabled, equations etc. will appear as their untransformed TeX source. # c.NotebookApp.enable_mathjax = True # The full path to an SSL/TLS certificate file. # c.NotebookApp.certfile = u'' # Path to an extra config file to load. # # If specified, load this config file in addition to any other IPython config. # c.NotebookApp.extra_config_file = u'' # The IPython profile to use. # c.NotebookApp.profile = u'default' # The base URL for the websocket server, if it differs from the HTTP server # (hint: it almost certainly doesn't). # # Should be in the form of an HTTP origin: ws[s]://hostname[:port] # c.NotebookApp.websocket_url = '' # The name of the IPython directory. This directory is used for logging # configuration (through profiles), history storage, etc. The default is usually # $HOME/.ipython. This options can also be specified through the environment # variable IPYTHONDIR. # c.NotebookApp.ipython_dir = u'C:\\Users\\wjs\\.ipython' # Set the log level by value or name. # c.NotebookApp.log_level = 30 # Hashed password to use for web authentication. # # To generate, type in a python/IPython shell: # # from IPython.lib import passwd; passwd() # # The string should be of the form type:salt:hashed-password. # c.NotebookApp.password = u'' # The Logging format template # c.NotebookApp.log_format = '[%(name)s]%(highlevel)s %(message)s' # Wether to use Browser Side less-css parsing instead of compiled css version in # templates that allows it. This is mainly convenient when working on the less # file to avoid a build step, or if user want to overwrite some of the less # variables without having to recompile everything. # # You will need to install the less.js component in the static directory either # in the source tree or in your profile folder. # c.NotebookApp.use_less = False # Extra paths to search for serving static files. # # This allows adding javascript/css to be available from the notebook server # machine, or overriding individual files in the IPython # c.NotebookApp.extra_static_paths = [] # Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded- # For headerssent by the upstream reverse proxy. Neccesary if the proxy handles # SSL # c.NotebookApp.trust_xheaders = False # Whether to install the default config files into the profile dir. If a new # profile is being created, and IPython contains config files for that profile, # then they will be staged into the new directory. Otherwise, default config # files will be automatically generated. # c.NotebookApp.copy_config_files = False # The full path to a private key file for usage with SSL/TLS. # c.NotebookApp.keyfile = u'' # Supply overrides for the tornado.web.Application that the IPython notebook # uses. # c.NotebookApp.webapp_settings = {} # Specify what command to use to invoke a web browser when opening the notebook. # If not specified, the default browser will be determined by the `webbrowser` # standard library module, which allows setting of the BROWSER environment # variable to override it. import webbrowser webbrowser.register('firefox', None, webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe')) c.NotebookApp.browser = 'firefox' #------------------------------------------------------------------------------ # IPKernelApp configuration #------------------------------------------------------------------------------ # IPython: an enhanced interactive Python shell. # IPKernelApp will inherit config from: BaseIPythonApplication, Application, # InteractiveShellApp # The importstring for the DisplayHook factory # c.IPKernelApp.displayhook_class = 'IPython.kernel.zmq.displayhook.ZMQDisplayHook' # Set the IP or interface on which the kernel will listen. # c.IPKernelApp.ip = u'' # Pre-load matplotlib and numpy for interactive use, selecting a particular # matplotlib backend and loop integration. # c.IPKernelApp.pylab = None # Create a massive crash report when IPython encounters what may be an internal # error. The default is to append a short message to the usual traceback # c.IPKernelApp.verbose_crash = False # The Kernel subclass to be used. # # This should allow easy re-use of the IPKernelApp entry point to configure and # launch kernels other than IPython's own. # c.IPKernelApp.kernel_class = 'IPython.kernel.zmq.ipkernel.Kernel' # Run the module as a script. # c.IPKernelApp.module_to_run = '' # The date format used by logging formatters for %(asctime)s # c.IPKernelApp.log_datefmt = '%Y-%m-%d %H:%M:%S' # set the shell (ROUTER) port [default: random] # c.IPKernelApp.shell_port = 0 # set the control (ROUTER) port [default: random] # c.IPKernelApp.control_port = 0 # Whether to overwrite existing config files when copying # c.IPKernelApp.overwrite = False # Execute the given command string. # c.IPKernelApp.code_to_run = '' # set the stdin (ROUTER) port [default: random] # c.IPKernelApp.stdin_port = 0 # Set the log level by value or name. # c.IPKernelApp.log_level = 30 # lines of code to run at IPython startup. # c.IPKernelApp.exec_lines = [] # Path to an extra config file to load. # # If specified, load this config file in addition to any other IPython config. # c.IPKernelApp.extra_config_file = u'' # The importstring for the OutStream factory # c.IPKernelApp.outstream_class = 'IPython.kernel.zmq.iostream.OutStream' # Whether to create profile dir if it doesn't exist # c.IPKernelApp.auto_create = False # set the heartbeat port [default: random] # c.IPKernelApp.hb_port = 0 # # c.IPKernelApp.transport = 'tcp' # redirect stdout to the null device # c.IPKernelApp.no_stdout = False # dotted module name of an IPython extension to load. # c.IPKernelApp.extra_extension = '' # A file to be run # c.IPKernelApp.file_to_run = '' # The IPython profile to use. # c.IPKernelApp.profile = u'default' # # c.IPKernelApp.parent_appname = u'' # kill this process if its parent dies. On Windows, the argument specifies the # HANDLE of the parent process, otherwise it is simply boolean. # c.IPKernelApp.parent_handle = 0 # JSON file in which to store connection info [default: kernel-.json] # # This file will contain the IP, ports, and authentication key needed to connect # clients to this kernel. By default, this file will be created in the security # dir of the current profile, but can be specified by absolute path. # c.IPKernelApp.connection_file = '' # If true, IPython will populate the user namespace with numpy, pylab, etc. and # an 'import *' is done from numpy and pylab, when using pylab mode. # # When False, pylab mode should not import any names into the user namespace. # c.IPKernelApp.pylab_import_all = True # The name of the IPython directory. This directory is used for logging # configuration (through profiles), history storage, etc. The default is usually # $HOME/.ipython. This options can also be specified through the environment # variable IPYTHONDIR. # c.IPKernelApp.ipython_dir = u'C:\\Users\\wjs\\.ipython' # Configure matplotlib for interactive use with the default matplotlib backend. # c.IPKernelApp.matplotlib = None # ONLY USED ON WINDOWS Interrupt this process when the parent is signaled. # c.IPKernelApp.interrupt = 0 # Whether to install the default config files into the profile dir. If a new # profile is being created, and IPython contains config files for that profile, # then they will be staged into the new directory. Otherwise, default config # files will be automatically generated. # c.IPKernelApp.copy_config_files = False # List of files to run at IPython startup. # c.IPKernelApp.exec_files = [] # Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'none', # 'osx', 'pyglet', 'qt', 'qt4', 'tk', 'wx'). # c.IPKernelApp.gui = None # A list of dotted module names of IPython extensions to load. # c.IPKernelApp.extensions = [] # redirect stderr to the null device # c.IPKernelApp.no_stderr = False # The Logging format template # c.IPKernelApp.log_format = '[%(name)s]%(highlevel)s %(message)s' # set the iopub (PUB) port [default: random] # c.IPKernelApp.iopub_port = 0 #------------------------------------------------------------------------------ # ZMQInteractiveShell configuration #------------------------------------------------------------------------------ # A subclass of InteractiveShell for ZMQ. # ZMQInteractiveShell will inherit config from: InteractiveShell # Use colors for displaying information about objects. Because this information # is passed through a pager (like 'less'), and some pagers get confused with # color codes, this capability can be turned off. # c.ZMQInteractiveShell.color_info = True # A list of ast.NodeTransformer subclass instances, which will be applied to # user input before code is run. # c.ZMQInteractiveShell.ast_transformers = [] # # c.ZMQInteractiveShell.history_length = 10000 # Don't call post-execute functions that have failed in the past. # c.ZMQInteractiveShell.disable_failing_post_execute = False # Show rewritten input, e.g. for autocall. # c.ZMQInteractiveShell.show_rewritten_input = True # Set the color scheme (NoColor, Linux, or LightBG). c.ZMQInteractiveShell.colors = 'Linux' # # c.ZMQInteractiveShell.separate_in = '\n' # Deprecated, use PromptManager.in2_template # c.ZMQInteractiveShell.prompt_in2 = ' .\\D.: ' # # c.ZMQInteractiveShell.separate_out = '' # Deprecated, use PromptManager.in_template # c.ZMQInteractiveShell.prompt_in1 = 'In [\\#]: ' # Enable deep (recursive) reloading by default. IPython can use the deep_reload # module which reloads changes in modules recursively (it replaces the reload() # function, so you don't need to change anything to use it). deep_reload() # forces a full reload of modules whose code may have changed, which the default # reload() function does not. When deep_reload is off, IPython will use the # normal reload(), but deep_reload will still be available as dreload(). # c.ZMQInteractiveShell.deep_reload = False # Make IPython automatically call any callable object even if you didn't type # explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. # The value can be '0' to disable the feature, '1' for 'smart' autocall, where # it is not applied if there are no more arguments on the line, and '2' for # 'full' autocall, where all callable objects are automatically called (even if # no arguments are present). # c.ZMQInteractiveShell.autocall = 0 # # c.ZMQInteractiveShell.separate_out2 = '' # Deprecated, use PromptManager.justify # c.ZMQInteractiveShell.prompts_pad_left = True # # c.ZMQInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] # Enable magic commands to be called without the leading %. # c.ZMQInteractiveShell.automagic = True # # c.ZMQInteractiveShell.debug = False # # c.ZMQInteractiveShell.object_info_string_level = 0 # # c.ZMQInteractiveShell.ipython_dir = '' # # c.ZMQInteractiveShell.readline_remove_delims = '-/~' # Start logging to the default log file. # c.ZMQInteractiveShell.logstart = False # The name of the logfile to use. # c.ZMQInteractiveShell.logfile = '' # # c.ZMQInteractiveShell.wildcards_case_sensitive = True # Save multi-line entries as one entry in readline history # c.ZMQInteractiveShell.multiline_history = False # Start logging to the given file in append mode. # c.ZMQInteractiveShell.logappend = '' # # c.ZMQInteractiveShell.xmode = 'Context' # # c.ZMQInteractiveShell.quiet = False # Deprecated, use PromptManager.out_template # c.ZMQInteractiveShell.prompt_out = 'Out[\\#]: ' # Set the size of the output cache. The default is 1000, you can change it # permanently in your config file. Setting it to 0 completely disables the # caching system, and the minimum value accepted is 20 (if you provide a value # less than 20, it is reset to 0 and a warning is issued). This limit is # defined because otherwise you'll spend more time re-flushing a too small cache # than working # c.ZMQInteractiveShell.cache_size = 1000 # 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run # interactively (displaying output from expressions). # c.ZMQInteractiveShell.ast_node_interactivity = 'last_expr' # Automatically call the pdb debugger after every exception. # c.ZMQInteractiveShell.pdb = False #------------------------------------------------------------------------------ # KernelManager configuration #------------------------------------------------------------------------------ # Manages a single kernel in a subprocess on this host. # # This version starts kernels with Popen. # KernelManager will inherit config from: ConnectionFileMixin # The Popen Command to launch the kernel. Override this if you have a custom # c.KernelManager.kernel_cmd = [] # Set the kernel's IP address [default localhost]. If the IP address is # something other than localhost, then Consoles on other machines will be able # to connect to the Kernel, so be careful! # c.KernelManager.ip = '127.0.0.1' # # c.KernelManager.transport = 'tcp' # Should we autorestart the kernel if it dies. # c.KernelManager.autorestart = False #------------------------------------------------------------------------------ # ProfileDir configuration #------------------------------------------------------------------------------ # An object to manage the profile directory and its resources. # # The profile directory is used by all IPython applications, to manage # configuration, logging and security. # # This object knows how to find, create and manage these directories. This # should be used by any code that wants to handle profiles. # Set the profile location directly. This overrides the logic used by the # `profile` option. # c.ProfileDir.location = u'' #------------------------------------------------------------------------------ # Session configuration #------------------------------------------------------------------------------ # Object for handling serialization and sending of messages. # # The Session object handles building messages and sending them with ZMQ sockets # or ZMQStream objects. Objects can communicate with each other over the # network via Session objects, and only need to work with the dict-based IPython # message spec. The Session will handle serialization/deserialization, security, # and metadata. # # Sessions support configurable serialiization via packer/unpacker traits, and # signing with HMAC digests via the key/keyfile traits. # # Parameters ---------- # # debug : bool # whether to trigger extra debugging statements # packer/unpacker : str : 'json', 'pickle' or import_string # importstrings for methods to serialize message parts. If just # 'json' or 'pickle', predefined JSON and pickle packers will be used. # Otherwise, the entire importstring must be used. # # The functions must accept at least valid JSON input, and output *bytes*. # # For example, to use msgpack: # packer = 'msgpack.packb', unpacker='msgpack.unpackb' # pack/unpack : callables # You can also set the pack/unpack callables for serialization directly. # session : bytes # the ID of this Session object. The default is to generate a new UUID. # username : unicode # username added to message headers. The default is to ask the OS. # key : bytes # The key used to initialize an HMAC signature. If unset, messages # will not be signed or checked. # keyfile : filepath # The file containing a key. If this is set, `key` will be initialized # to the contents of the file. # Username for the Session. Default is your system username. # c.Session.username = u'username' # The name of the unpacker for unserializing messages. Only used with custom # functions for `packer`. # c.Session.unpacker = 'json' # Threshold (in bytes) beyond which a buffer should be sent without copying. # c.Session.copy_threshold = 65536 # The name of the packer for serializing messages. Should be one of 'json', # 'pickle', or an import name for a custom callable serializer. # c.Session.packer = 'json' # The maximum number of digests to remember. # # The digest history will be culled when it exceeds this value. # c.Session.digest_history_size = 65536 # The UUID identifying this session. # c.Session.session = u'' # The digest scheme used to construct the message signatures. Must have the form # 'hmac-HASH'. # c.Session.signature_scheme = 'hmac-sha256' # execution key, for extra authentication. # c.Session.key = '' # Debug output in the Session # c.Session.debug = False # The maximum number of items for a container to be introspected for custom # serialization. Containers larger than this are pickled outright. # c.Session.item_threshold = 64 # path to file containing execution key. # c.Session.keyfile = '' # Threshold (in bytes) beyond which an object's buffer should be extracted to # avoid pickling. # c.Session.buffer_threshold = 1024 # Metadata dictionary, which serves as the default top-level metadata dict for # each message. # c.Session.metadata = {} #------------------------------------------------------------------------------ # InlineBackend configuration #------------------------------------------------------------------------------ # An object to store configuration of the inline backend. # The image format for figures with the inline backend. # c.InlineBackend.figure_format = 'png' # Close all figures at the end of each cell. # # When True, ensures that each cell starts with no active figures, but it also # means that one must keep track of references in order to edit or redraw # figures in subsequent cells. This mode is ideal for the notebook, where # residual plots from other cells might be surprising. # # When False, one must call figure() to create new figures. This means that # gcf() and getfigs() can reference figures created in other cells, and the # active figure can continue to be edited with pylab/pyplot methods that # reference the current active figure. This mode facilitates iterative editing # of figures, and behaves most consistently with other matplotlib backends, but # figure barriers between cells must be explicit. # c.InlineBackend.close_figures = True # Subset of matplotlib rcParams that should be different for the inline backend. # c.InlineBackend.rc = {'font.size': 10, 'figure.figsize': (6.0, 4.0), 'figure.facecolor': 'white', 'savefig.dpi': 72, 'figure.subplot.bottom': 0.125, 'figure.edgecolor': 'white'} #------------------------------------------------------------------------------ # MappingKernelManager configuration #------------------------------------------------------------------------------ # A KernelManager that handles notebook mapping and HTTP error handling # MappingKernelManager will inherit config from: MultiKernelManager # The kernel manager class. This is configurable to allow subclassing of the # KernelManager for customized behavior. # c.MappingKernelManager.kernel_manager_class = 'IPython.kernel.ioloop.IOLoopKernelManager' #------------------------------------------------------------------------------ # NotebookManager configuration #------------------------------------------------------------------------------ # The directory to use for notebooks. # c.NotebookManager.notebook_dir = u'c:\\Python\\WinPython-64bit-2.7.5.3\\python-2.7.5.amd64\\Scripts' c.NotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' #------------------------------------------------------------------------------ # FileNotebookManager configuration #------------------------------------------------------------------------------ # FileNotebookManager will inherit config from: NotebookManager # The location in which to keep notebook checkpoints # # By default, it is notebook-dir/.ipynb_checkpoints # c.FileNotebookManager.checkpoint_dir = u'' # Automatically create a Python script when saving the notebook. # # For easier use of import, %run and %load across notebooks, a .py script will be created next to any .ipynb on each # save. This can also be set with the short `--script` flag. # c.FileNotebookManager.save_script = False # The directory to use for notebooks. # c.FileNotebookManager.notebook_dir = u'c:\\Python\\WinPython-64bit-2.7.5.3\\python-2.7.5.amd64\\Scripts' c.FileNotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' From benjaminrk at gmail.com Mon Apr 6 15:34:42 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 6 Apr 2015 12:34:42 -0700 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: If you comment out the `notebook_dir` settings, does it work as expected? On Mon, Apr 6, 2015 at 11:07 AM, William Shipman wrote: > To summarise the non-default settings: > > import webbrowser > webbrowser.register('firefox', None, > webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Mozilla > Firefox\\firefox.exe')) > c.NotebookApp.browser = 'firefox' > > c.ZMQInteractiveShell.colors = 'Linux' > > c.NotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' > > c.FileNotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' > > I've also attached the complete 'ipython_notebook_config.py' in case it > helps. > > > > On 6 April 2015 at 19:58, MinRK wrote: > >> You have described the current default behavior of IPython. So I'm >> wondering if you have anything in your `ipython_notebook_config.py` that is >> causing the behavior to be something different.? The file will be in >> `~/.ipython/profile_default/ipython_notebook_config.py`. >> >> -MinRK >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shipman.william at gmail.com Mon Apr 6 17:25:45 2015 From: shipman.william at gmail.com (William Shipman) Date: Mon, 6 Apr 2015 23:25:45 +0200 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: I originally had those settings so that the default profile would always start up in that IPython folder in my git folder. That used to work. I commented out those two lines and then ran 'ipython notebook' from cmd in my 'C:\Users\wjs\git\IPython' folder and it worked properly. I think the problem comes from working around an old WinPython distribution. The 'IPython Notebook.exe' that I have stopped working when I upgraded to IPython 2.3. I never fixed that, but instead just created a shortcut from which to launch 'ipython notebook'. If I set the working directory for that shortcut to 'C:\Users\wjs\git\IPython' and use it to launch the notebook server then, with or without the notebook_dir lines, it behaves properly. Do I need the notebook_dir settings? Thanks for helping me MinRK. The problem is now fixed. On 6 April 2015 at 21:34, MinRK wrote: > If you comment out the `notebook_dir` settings, does it work as expected? > > On Mon, Apr 6, 2015 at 11:07 AM, William Shipman < > shipman.william at gmail.com> wrote: > >> To summarise the non-default settings: >> >> import webbrowser >> webbrowser.register('firefox', None, >> webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Mozilla >> Firefox\\firefox.exe')) >> c.NotebookApp.browser = 'firefox' >> >> c.ZMQInteractiveShell.colors = 'Linux' >> >> c.NotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' >> >> c.FileNotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' >> >> I've also attached the complete 'ipython_notebook_config.py' in case it >> helps. >> >> >> >> On 6 April 2015 at 19:58, MinRK wrote: >> >>> You have described the current default behavior of IPython. So I'm >>> wondering if you have anything in your `ipython_notebook_config.py` that is >>> causing the behavior to be something different.? The file will be in >>> `~/.ipython/profile_default/ipython_notebook_config.py`. >>> >>> -MinRK >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Apr 6 17:28:39 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 6 Apr 2015 14:28:39 -0700 Subject: [IPython-dev] Get notebook kernels to start in the same folder as the notebook .ipynb file In-Reply-To: References: Message-ID: In IPython >= 2, the config value you probably want is `NotebookApp.notebook_dir`. If you set it for notebooks directly, rather than the top-level app, you can have a different directory for notebooks and kernels. -MinRK On Mon, Apr 6, 2015 at 2:25 PM, William Shipman wrote: > I originally had those settings so that the default profile would always > start up in that IPython folder in my git folder. That used to work. > > I commented out those two lines and then ran 'ipython notebook' from cmd > in my 'C:\Users\wjs\git\IPython' folder and it worked properly. > > I think the problem comes from working around an old WinPython > distribution. The 'IPython Notebook.exe' that I have stopped working when I > upgraded to IPython 2.3. I never fixed that, but instead just created a > shortcut from which to launch 'ipython notebook'. If I set the working > directory for that shortcut to 'C:\Users\wjs\git\IPython' and use it to > launch the notebook server then, with or without the notebook_dir lines, it > behaves properly. > > Do I need the notebook_dir settings? > > Thanks for helping me MinRK. The problem is now fixed. > > On 6 April 2015 at 21:34, MinRK wrote: > >> If you comment out the `notebook_dir` settings, does it work as expected? >> >> On Mon, Apr 6, 2015 at 11:07 AM, William Shipman < >> shipman.william at gmail.com> wrote: >> >>> To summarise the non-default settings: >>> >>> import webbrowser >>> webbrowser.register('firefox', None, >>> webbrowser.GenericBrowser(u'C:\\Program Files (x86)\\Mozilla >>> Firefox\\firefox.exe')) >>> c.NotebookApp.browser = 'firefox' >>> >>> c.ZMQInteractiveShell.colors = 'Linux' >>> >>> c.NotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' >>> >>> c.FileNotebookManager.notebook_dir = u'C:\\Users\\wjs\\git\\IPython' >>> >>> I've also attached the complete 'ipython_notebook_config.py' in case it >>> helps. >>> >>> >>> >>> On 6 April 2015 at 19:58, MinRK wrote: >>> >>>> You have described the current default behavior of IPython. So I'm >>>> wondering if you have anything in your `ipython_notebook_config.py` that is >>>> causing the behavior to be something different.? The file will be in >>>> `~/.ipython/profile_default/ipython_notebook_config.py`. >>>> >>>> -MinRK >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maidos93 at laposte.net Wed Apr 8 08:06:59 2015 From: maidos93 at laposte.net (thwiouz) Date: Wed, 8 Apr 2015 05:06:59 -0700 (PDT) Subject: [IPython-dev] Tooltip disappeared Message-ID: <1428494819615-5091795.post@n6.nabble.com> Hi, I've just jumped to the IPython 3.1.0 and I cannot find the tooltip (the one that display the documentation of a function). Did you remove it? Thanks, -- View this message in context: http://python.6.x6.nabble.com/Tooltip-disappeared-tp5091795.html Sent from the IPython - Development mailing list archive at Nabble.com. From bussonniermatthias at gmail.com Wed Apr 8 14:18:48 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 8 Apr 2015 11:18:48 -0700 Subject: [IPython-dev] Tooltip disappeared In-Reply-To: <1428494819615-5091795.post@n6.nabble.com> References: <1428494819615-5091795.post@n6.nabble.com> Message-ID: Nop still there, are you trying to trigger it with tab ? Tab was in deprecation since 1.0 in favor of Shift-Tab. We removed the Tab binding in 3.0., but shift-tab shoudl still work. On Wed, Apr 8, 2015 at 5:06 AM, thwiouz wrote: > Hi, > > I've just jumped to the IPython 3.1.0 and I cannot find the tooltip (the > one > that display the documentation of a function). > Did you remove it? > > Thanks, > > > > -- > View this message in context: > http://python.6.x6.nabble.com/Tooltip-disappeared-tp5091795.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wstein at gmail.com Wed Apr 8 20:37:38 2015 From: wstein at gmail.com (William Stein) Date: Wed, 8 Apr 2015 17:37:38 -0700 Subject: [IPython-dev] history slider Message-ID: Hi IPython devs, I spent days and days upgrading SageMathCloud to use Jupyter 3.1.0, and while I was at it, I also rewrote the synchronization code and added a history slider. If you've ever wondered what it is like to use a Jupyter notebook, but have a slider (like with Pirate Pad) where you can move through past revisions, now you can try it out... I'm really pleased with and happy at the direction that Jupyter development is going on. Thanks for a great update, and I'm looking forward to whatever is next. Regards, -- William -- William (http://wstein.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-04-08 at 5.35.45 PM.png Type: image/png Size: 272603 bytes Desc: not available URL: From bussonniermatthias at gmail.com Wed Apr 8 20:49:53 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 8 Apr 2015 17:49:53 -0700 Subject: [IPython-dev] history slider In-Reply-To: References: Message-ID: Thanks William, this is really great ! Happy to see that ! Working hard on next version ! On Wed, Apr 8, 2015 at 5:37 PM, William Stein wrote: > Hi IPython devs, > > I spent days and days upgrading SageMathCloud to use Jupyter 3.1.0, > and while I was at it, I also rewrote the synchronization code and > added a history slider. If you've ever wondered what it is like to > use a Jupyter notebook, but have a slider (like with Pirate Pad) where > you can move through past revisions, now you can try it out... > > I'm really pleased with and happy at the direction that Jupyter > development is going on. Thanks for a great update, and I'm looking > forward to whatever is next. > > Regards, > > -- William > > -- > William (http://wstein.org) > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Apr 8 20:50:42 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 8 Apr 2015 17:50:42 -0700 Subject: [IPython-dev] history slider In-Reply-To: References: Message-ID: +1! On Wed, Apr 8, 2015 at 5:49 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Thanks William, this is really great ! Happy to see that ! > Working hard on next version ! > > On Wed, Apr 8, 2015 at 5:37 PM, William Stein wrote: > >> Hi IPython devs, >> >> I spent days and days upgrading SageMathCloud to use Jupyter 3.1.0, >> and while I was at it, I also rewrote the synchronization code and >> added a history slider. If you've ever wondered what it is like to >> use a Jupyter notebook, but have a slider (like with Pirate Pad) where >> you can move through past revisions, now you can try it out... >> >> I'm really pleased with and happy at the direction that Jupyter >> development is going on. Thanks for a great update, and I'm looking >> forward to whatever is next. >> >> Regards, >> >> -- William >> >> -- >> William (http://wstein.org) >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From maidos93 at laposte.net Thu Apr 9 07:46:05 2015 From: maidos93 at laposte.net (thwiouz) Date: Thu, 9 Apr 2015 04:46:05 -0700 (PDT) Subject: [IPython-dev] Tooltip disappeared In-Reply-To: References: <1428494819615-5091795.post@n6.nabble.com> Message-ID: <1428579965016-5091895.post@n6.nabble.com> Yes thank you, that was the problem I encountered (Tab only). Thanks, -- View this message in context: http://python.6.x6.nabble.com/Tooltip-disappeared-tp5091836p5091895.html Sent from the IPython - Development mailing list archive at Nabble.com. From gustavo.goretkin at gmail.com Fri Apr 10 20:24:01 2015 From: gustavo.goretkin at gmail.com (Gustavo Goretkin) Date: Fri, 10 Apr 2015 20:24:01 -0400 Subject: [IPython-dev] auto scroll with interactive widget and printing+plotting Message-ID: This notebook should illustrate the problem: http://nbviewer.ipython.org/gist/goretkin/e3e023a4cbacbf2718a1 Whenever I scrub the widget sliders, the page scrolls to a specific location, which cuts off the figure. It doesn't seem to happen if I just print or just plot. Python 3.4.3 and IPython 3.1.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paad.ruslan.korniichuk at gmail.com Tue Apr 14 06:11:52 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Tue, 14 Apr 2015 12:11:52 +0200 Subject: [IPython-dev] Error: Jupyter Notebook installation on clean Ubuntu 14.04.2 LTS Message-ID: Hi all, After jupyter Notebook ver. 4.0 old method does not work (seebellow). How do I install develompment version of Jupyter Notebook? $ wget https://bootstrap.pypa.io/get-pip.py $ sudo python get-pip.py $ sudo pip install virtualenv $ cd ~ $ virtualenv local/python/jupyter $ source local/python/jupyter/bin/activate $ cd ipython $ pip install -e ".[notebook]" Could not find a version that satisfies the requirement jupyter-notebook (from ipython==4.0.0.dev0) (from versions: ) Some externally hosted files were ignored as access to them may be unreliable (use --allow-external jupyter-notebook to allow). No matching distribution found for jupyter-notebook (from ipython==4.0.0.dev0) --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Tue Apr 14 14:31:00 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 14 Apr 2015 11:31:00 -0700 Subject: [IPython-dev] Error: Jupyter Notebook installation on clean Ubuntu 14.04.2 LTS In-Reply-To: References: Message-ID: To get the dev version of Jupyter Notebook: git clone https://github.com/jupyter/jupyter_notebook cd jupyter_notebook pip install -r requirements.txt -e . -MinRK ? On Tue, Apr 14, 2015 at 3:11 AM, Ruslan Korniichuk < paad.ruslan.korniichuk at gmail.com> wrote: > Hi all, > > After jupyter Notebook ver. 4.0 old method does not work (seebellow). > How do I install develompment version of Jupyter Notebook? > > $ wget https://bootstrap.pypa.io/get-pip.py > $ sudo python get-pip.py > > $ sudo pip install virtualenv > $ cd ~ > $ virtualenv local/python/jupyter > $ source local/python/jupyter/bin/activate > > $ cd ipython > $ pip install -e ".[notebook]" > > Could not find a version that satisfies the requirement jupyter-notebook > (from ipython==4.0.0.dev0) (from versions: ) > Some externally hosted files were ignored as access to them may be > unreliable (use --allow-external jupyter-notebook to allow). > No matching distribution found for jupyter-notebook (from > ipython==4.0.0.dev0) > > --- > Best regards, > Ruslan Korniichuk > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron.oleary at gmail.com Mon Apr 13 17:15:04 2015 From: aaron.oleary at gmail.com (Aaron O'Leary) Date: Mon, 13 Apr 2015 22:15:04 +0100 Subject: [IPython-dev] reducing install dependencies (pip install ipython[extras]) In-Reply-To: References: Message-ID: Sorry, this is actually caused by use in a conda env. Question is void! On 13 April 2015 at 21:56, Aaron O'Leary wrote: > Before version 3.1.0 it was possible to do > > pip install ipython[nbformat] > > to install ipython and the nbformat machinery without needing to > install the full notebook dependencies (`pip install > ipython[notebook]`) > > This seems to have been deprecated (along with ipython[nbconvert]). It > was useful, but not critical, for notedown. Is this likely to be a > permanent change? > > cheers, > aaron From aaron.oleary at gmail.com Mon Apr 13 16:56:01 2015 From: aaron.oleary at gmail.com (Aaron O'Leary) Date: Mon, 13 Apr 2015 21:56:01 +0100 Subject: [IPython-dev] reducing install dependencies (pip install ipython[extras]) Message-ID: Before version 3.1.0 it was possible to do pip install ipython[nbformat] to install ipython and the nbformat machinery without needing to install the full notebook dependencies (`pip install ipython[notebook]`) This seems to have been deprecated (along with ipython[nbconvert]). It was useful, but not critical, for notedown. Is this likely to be a permanent change? cheers, aaron From paad.ruslan.korniichuk at gmail.com Wed Apr 15 04:55:30 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Wed, 15 Apr 2015 10:55:30 +0200 Subject: [IPython-dev] Error: Dev quickstart fo Jupyter Notebook (Ubuntu 14.04) Message-ID: Hi all, Thx. for update here: https://github.com/jupyter/jupyter_notebook But "Dev quickstart" does not work (see bellow). Please, send me manual: "How install on Ubuntu Jupyter Notebook or dev version IPython Notebook (for example, ver. 3.1.0-dev-5b6d047 or ver. 4.0.0-dev-5e861d2 )". $ sudo apt-get install npm nodejs-legacy $ sudo npm install -g configurable-http-proxy $ virtualenv local/python/jupyter-dev $ source local/python/jupyter-dev/bin/activate $ git clone --recursive https://github.com/jupyter/jupyter_notebook.git $ cd jupyter_notebook $ sudo pip install -r requirements.txt Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-ifTzYQ/pyzmq/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LJxtEZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ifTzYQ/pyzmq --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Apr 15 12:14:34 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 15 Apr 2015 09:14:34 -0700 Subject: [IPython-dev] Error: Dev quickstart fo Jupyter Notebook (Ubuntu 14.04) In-Reply-To: References: Message-ID: Ah, there's one thing wrong in the quickstart: don't `sudo pip install` after creating the env. It should just be `pip install`, since a virtualenv is in use. On Wed, Apr 15, 2015 at 1:55 AM, Ruslan Korniichuk < paad.ruslan.korniichuk at gmail.com> wrote: > Hi all, > > Thx. for update here: https://github.com/jupyter/jupyter_notebook > But "Dev quickstart" does not work (see bellow). > Please, send me manual: "How install on Ubuntu Jupyter Notebook or dev > version IPython Notebook (for example, ver. 3.1.0-dev-5b6d047 or ver. > 4.0.0-dev-5e861d2 )". > > $ sudo apt-get install npm nodejs-legacy > $ sudo npm install -g configurable-http-proxy > > $ virtualenv local/python/jupyter-dev > $ source local/python/jupyter-dev/bin/activate > $ git clone --recursive https://github.com/jupyter/jupyter_notebook.git > $ cd jupyter_notebook > $ sudo pip install -r requirements.txt > > Command "/usr/bin/python -c "import setuptools, > tokenize;__file__='/tmp/pip-build-ifTzYQ/pyzmq/setup.py';exec(compile(getattr(tokenize, > 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" > install --record /tmp/pip-LJxtEZ-record/install-record.txt > --single-version-externally-managed --compile" failed with error code 1 in > /tmp/pip-build-ifTzYQ/pyzmq > > --- > Best regards, > Ruslan Korniichuk > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zonca at sdsc.edu Thu Apr 16 12:52:06 2015 From: zonca at sdsc.edu (Andrea Zonca) Date: Thu, 16 Apr 2015 09:52:06 -0700 Subject: [IPython-dev] Jupyterhub plugin to spawn notebooks on a Supercomputer Message-ID: hi, First of all thanks for developing Jupyterhub, it is a great piece of software for scientific computing. I've developed a proof-of-concept plugin for Jupyterhub to interface via ssh to a supercomputing queue (Torque for now), then interface via ssh-tunnel the computing node and the Jupyterhub host. The purpose is to access easily to computing resources, data and software available on a Supercomputer. I have a few screenshots and a longer description in this post: http://zonca.github.io/2015/04/jupyterhub-hpc.html I am looking for collaborators interested in discussing the use of Jupyterhub in High Performance Computing. Thanks, Andre -- Andrea Zonca HPC Applications Specialist San Diego Supercomputer Center -------------- next part -------------- An HTML attachment was scrubbed... URL: From harald.schilly at gmail.com Thu Apr 16 14:39:10 2015 From: harald.schilly at gmail.com (Harald Schilly) Date: Thu, 16 Apr 2015 20:39:10 +0200 Subject: [IPython-dev] WebMIDI <-> @interact idea Message-ID: I just came across a blogpost from google that their newest Chrome beta supports WebMIDI. For those who don't know MIDI: this is a data language for external hardware devices, which do have knobs, sliders and/or keys. When they are manipulated, a stream of simple data packages is sent to the computer and this WebMIDI obviously allows to hook into this stream. It can be used to make music, but that's not what I suggest. Rather, my immediate idea is to tie up to those controllers to those interactive @interact slider controls! I think this is not only a cool thing to have, but would also make it possible to shrink those UI elements to be much smaller (e.g. only displaying the values, not the slider) and also allows to control more than one value at the same time (by turning two knobs at once). http://blog.chromium.org/2015/04/chrome-43-beta-web-midi-and-upgrading.html http://webaudio.github.io/web-midi-api/ -- Harald From bussonniermatthias at gmail.com Thu Apr 16 17:13:02 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 16 Apr 2015 14:13:02 -0700 Subject: [IPython-dev] WebMIDI <-> @interact idea In-Reply-To: References: Message-ID: Thanks for the link. Right now you don't actually need webmidi to do this kind of things. As a local server on the machine with the browser can stream data through websocket and the right cross origin policies. Any of you with a Leap Motion can hook it us to a notebook, and see you hands in 3D in a notebook. So if any of you want to make a prototype of widget using webMidi, please feel free to share it. -- M On Thu, Apr 16, 2015 at 11:39 AM, Harald Schilly wrote: > I just came across a blogpost from google that their newest Chrome > beta supports WebMIDI. > > For those who don't know MIDI: this is a data language for external > hardware devices, which do have knobs, sliders and/or keys. When they > are manipulated, a stream of simple data packages is sent to the > computer and this WebMIDI obviously allows to hook into this stream. > It can be used to make music, but that's not what I suggest. > > Rather, my immediate idea is to tie up to those controllers to those > interactive @interact slider controls! I think this is not only a cool > thing to have, but would also make it possible to shrink those UI > elements to be much smaller (e.g. only displaying the values, not the > slider) and also allows to control more than one value at the same > time (by turning two knobs at once). > > http://blog.chromium.org/2015/04/chrome-43-beta-web-midi-and-upgrading.html > > http://webaudio.github.io/web-midi-api/ > > -- Harald > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nicolas.Rougier at inria.fr Fri Apr 17 07:38:05 2015 From: Nicolas.Rougier at inria.fr (Nicolas P. Rougier) Date: Fri, 17 Apr 2015 13:38:05 +0200 Subject: [IPython-dev] EuroScipy 2015 : Call for talks, posters and tutorials [Reminder] Message-ID: <1D3622CF-21F1-4603-A60D-02BEBA818323@inria.fr> [Apology for cross-posting] Dear all, EuroScipy 2015, the annual conference on Python in science will take place in Cambridge, UK on 26-30 August 2015. The conference features two days of tutorials followed by two days of scientific talks & posters and an extra day dedicated to developer sprints. It is the major event in Europe in the field of technical/scientific computing within the Python ecosystem. Data scientists, analysts, quants, PhD's, scientists and students from more than 20 countries attended the conference last year. The topics presented at EuroSciPy are very diverse, with a focus on advanced software engineering and original uses of Python and its scientific libraries, either in theoretical or experimental research, from both academia and the industry. Submissions for posters, talks & tutorials (beginner and advanced) are welcome on our website at http://www.euroscipy.org/2015/ Sprint proposals should be addressed directly to the organisation at euroscipy-org at python.org Important dates Mar 24, 2015 Call for talks, posters & tutorials Apr 30, 2015 Talk and tutorials submission deadline May 1, 2015 Registration opens May 30, 2015 Final program announced Jun 15, 2015 Early-bird registration ends Aug 26-27, 2015 Tutorials Aug 28-29, 2015 Main conference Aug 30, 2015 Sprints We look forward to an exciting conference and hope to see you in Cambridge The EuroSciPy 2015 Team - http://www.euroscipy.org/2015/ From john at omernik.com Fri Apr 17 08:18:41 2015 From: john at omernik.com (John Omernik) Date: Fri, 17 Apr 2015 07:18:41 -0500 Subject: [IPython-dev] Question on Layout Message-ID: Is the width of the usable area in iPython fixed no matter what the resolution? I feel like it's a waste of my nice 27 inch monitors when I have 4 inches of grey non used space on either side of my "notebook" yes, I can zoom to make it bigger, but is there a way to allow a growth of the box, or create a per user setting to to make better use of the all the screen real estate? Thanks! John -------------- next part -------------- An HTML attachment was scrubbed... URL: From wstein at gmail.com Fri Apr 17 09:56:59 2015 From: wstein at gmail.com (William Stein) Date: Fri, 17 Apr 2015 06:56:59 -0700 Subject: [IPython-dev] Question on Layout In-Reply-To: References: Message-ID: On Fri, Apr 17, 2015 at 5:18 AM, John Omernik wrote: > Is the width of the usable area in iPython fixed no matter what the > resolution? I feel like it's a waste of my nice 27 inch monitors when I have > 4 inches of grey non used space on either side of my "notebook" yes, I can > zoom to make it bigger, but is there a way to allow a growth of the box, or > create a per user setting to to make better use of the all the screen real > estate? For what it's worth, In SageMathCloud I make the Jupyter notebooks use the full width of the screen by default -- see the attached screenshot. I just read my code, and this is done via this line of Javascript...: $('').html(".container{width:98%; margin-left: 0;}") > > Thanks! > > John > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- William (http://wstein.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-04-17 at 6.51.04 AM.png Type: image/png Size: 312354 bytes Desc: not available URL: From zvoros at gmail.com Fri Apr 17 10:43:34 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Fri, 17 Apr 2015 16:43:34 +0200 Subject: [IPython-dev] Question on Layout In-Reply-To: References: Message-ID: John, It's enough, if you copy .container{ width:98%; margin-left: 0; } in custom.css in the static/custom/ folder of your profile. I hope this helps. Zolt?n On Fri, Apr 17, 2015 at 3:56 PM, William Stein wrote: > On Fri, Apr 17, 2015 at 5:18 AM, John Omernik wrote: > > Is the width of the usable area in iPython fixed no matter what the > > resolution? I feel like it's a waste of my nice 27 inch monitors when I > have > > 4 inches of grey non used space on either side of my "notebook" yes, I > can > > zoom to make it bigger, but is there a way to allow a growth of the box, > or > > create a per user setting to to make better use of the all the screen > real > > estate? > > For what it's worth, In SageMathCloud I make the Jupyter notebooks use > the full width of the screen by default -- see the attached > screenshot. I just read my code, and this is done via this line of > Javascript...: > > $('').html(".container{width:98%; > margin-left: 0;}") > > > > > Thanks! > > > > John > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > William (http://wstein.org) > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paad.ruslan.korniichuk at gmail.com Fri Apr 17 16:47:10 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Fri, 17 Apr 2015 22:47:10 +0200 Subject: [IPython-dev] Remote kernels works BUT local kernels does not work. Message-ID: Hi all, All history of this subject is available HERE: http://goo.gl/WuMfeJ I am trying to realize (see below) the algorithm which propose Matthias and have 1 problem and 2 important questions: 1. I can work with remote kernels, but because I changed c.KernelManager.ip in ipython_notebook_config.py Jupyter Notebook can't work with local kernels. Please tell me ideas how I can use, in one Jupyter Notebook, local and remote kernels (change kernel from local to remote). Maybe I can change IP address not only in ipython_notebook_config.py? 2. I must hack ~/IPython/kernel/manager.py and it's VERY bad idea because after Jupyter Notebook from ver. 4.0 to to ver. 40.0 was big fat trouble:) How I can change configuration that Jyputer Notebook approve and launch a kernel on a remote PC. 3. Where I can read information about new architecture of Jupyter, for example, I tried find manager.py file on Jupyter resources but failed:( 4. What about python2 kernel if I installed Jyputer Notebook like this: $ sudo apt-get install python3-pip $ ipytsudo pip3 install "ipython[notebook]" Is it possible? I tried change kernel.json (from /usr/bin/python3 to /usr/bin/python). It is does not work: ERROR: /usr/bin/python: IPython.kernel.zmq requires pyzmq >= 13; 'IPython.kernel' is a package and cannot be directly executed Main source HERE: Jupyter Notebook server ver. 3.1.0-cbccb68 IP adress pc-frontend(local pc): 155.158.129.241 IP adress pc-backend(remote pc): 155.158.129.242 kernel.json: { "language": "python", "display_name": "Python 3 Back End", "argv": [ "./remote_kernel.sh", "{connection_file}" ] } remote_kernel.sh: #! /bin/bash connection_file=$1 scp $connection_file paad at 155.158.129.242:$connection_file ssh paad at 155.158.129.242 << EOF /usr/bin/python3 -m IPython.kernel -f $connection_file --profile-dir /home/paad/.ipython/profile_default EOF ipython_notebook_config.py: FROM: # c.KernelManager.ip = 'localhost' TO: c.KernelManager.ip = '155.158.129.242' ~/IPython/kernel/manager.py: def start_kernel(): FROM: if self.transport == 'tcp' and not is_local_ip(self.ip): raise RuntimeError("Can only launch a kernel on a local interface. " "Make sure that the '*_address' attributes are " "configured properly. " "Currently valid addresses are: %s" % local_ips() ) TO: # if self.transport == 'tcp' and not is_local_ip(self.ip): # raise RuntimeError("Can only launch a kernel on a local interface. " # "Make sure that the '*_address' attributes are " # "configured properly. " # "Currently valid addresses are: %s" % local_ips() # ) --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Apr 17 19:57:33 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 17 Apr 2015 19:57:33 -0400 Subject: [IPython-dev] Remote kernels works BUT local kernels does not work. In-Reply-To: References: Message-ID: On 17 April 2015 at 16:47, Ruslan Korniichuk < paad.ruslan.korniichuk at gmail.com> wrote: > 1. I can work with remote kernels, but because I changed > c.KernelManager.ip in ipython_notebook_config.py Jupyter Notebook can't > work with local kernels. Please tell me ideas how I can use, in one Jupyter > Notebook, local and remote kernels (change kernel from local to remote). > Maybe I can change IP address not only in ipython_notebook_config.py? > I think there are two possibilities: either provide a kernel manager that knows about both local and remote kernels, or write kernelspecs that can start a kernel remotely and tunnel the local ZMQ sockets to it. > 3. Where I can read information about new architecture of Jupyter, for > example, I tried find manager.py file on Jupyter resources but failed:( > The architecture is still basically the same, but we have split the components up more. That file is now part of the jupyter_client repository: https://github.com/jupyter/jupyter_client/blob/master/jupyter_client/manager.py > 4. What about python2 kernel if I installed Jyputer Notebook like this: > $ sudo apt-get install python3-pip > $ ipytsudo pip3 install "ipython[notebook]" > Is it possible? I tried change kernel.json (from /usr/bin/python3 to > /usr/bin/python). It is does not work: > ERROR: /usr/bin/python: IPython.kernel.zmq requires pyzmq >= 13; > 'IPython.kernel' is a package and cannot be directly executed > In order to get a Python 2 kernel, you will need to install IPython on Python 2 as well, and then run `ipython2 kernelspec install-self`. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From rsignell at usgs.gov Wed Apr 22 17:06:41 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 17:06:41 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? Message-ID: Jupyterhub folks, We are looking for solutions for one week of Python training for about 50 met-ocean students at the NSF-funded Unidata Program Center in Boulder (in June). And we are thinking Jupyterhub on the cloud. We know that Software Carpentry favors students to install on their own laptops, but we are leaning toward a cloud solution to demonstrate the advantages of computing close to large met-ocean datasets. And we could also set up a common environment with packages used in the met-ocean community (e.g. http://conda.binstar.org/ioos). We read this article https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ which is similar to what we would like to set up, but the setup sounded rather harrowing. Are there other solutions that would take less setup, yet allow us a multi-user notebook login with cloud resources with a shared custom env? Thanks, Rich -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From wstein at gmail.com Wed Apr 22 17:09:19 2015 From: wstein at gmail.com (William Stein) Date: Wed, 22 Apr 2015 14:09:19 -0700 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: > Jupyterhub folks, > > We are looking for solutions for one week of Python training for about > 50 met-ocean students at the NSF-funded Unidata Program Center in > Boulder (in June). And we are thinking Jupyterhub on the cloud. > > We know that Software Carpentry favors students to install on their > own laptops, but we are leaning toward a cloud solution to demonstrate > the advantages of computing close to large met-ocean datasets. And we > could also set up a common environment with packages used in the > met-ocean community (e.g. http://conda.binstar.org/ioos). > > We read this article > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > which is similar to what we would like to set up, but the setup > sounded rather harrowing. > > Are there other solutions that would take less setup, yet allow us a > multi-user notebook login with cloud resources with a shared custom > env? Could you elaborate on what you mean by "a shared custom environment". https://cloud.sagemath.com, which I run, is zero setup, and can easily handle the load of 50 people (we often have 600-700 simultaneous users). However, there's no notion of shared custom environment, so it might not work at all for you. -- William > > Thanks, > Rich > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- William (http://wstein.org) From rsignell at usgs.gov Wed Apr 22 17:14:34 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 17:14:34 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: William, I mean a python environment with these packages installed from our binstar channel (http://conda.binstar.org): iris mpld3 pyoos pandas folium rdflib geojson requests ipython-notebook xlrd mplleaflet oceans qrcode utilities On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: > On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >> Jupyterhub folks, >> >> We are looking for solutions for one week of Python training for about >> 50 met-ocean students at the NSF-funded Unidata Program Center in >> Boulder (in June). And we are thinking Jupyterhub on the cloud. >> >> We know that Software Carpentry favors students to install on their >> own laptops, but we are leaning toward a cloud solution to demonstrate >> the advantages of computing close to large met-ocean datasets. And we >> could also set up a common environment with packages used in the >> met-ocean community (e.g. http://conda.binstar.org/ioos). >> >> We read this article >> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >> which is similar to what we would like to set up, but the setup >> sounded rather harrowing. >> >> Are there other solutions that would take less setup, yet allow us a >> multi-user notebook login with cloud resources with a shared custom >> env? > > Could you elaborate on what you mean by "a shared custom environment". > https://cloud.sagemath.com, which I run, is zero setup, and can easily > handle the load of 50 people (we often have 600-700 simultaneous > users). However, there's no notion of shared custom environment, so > it might not work at all for you. > > -- William > >> >> Thanks, >> Rich >> >> -- >> Dr. Richard P. Signell (508) 457-2229 >> USGS, 384 Woods Hole Rd. >> Woods Hole, MA 02543-1598 >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > William (http://wstein.org) > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From rsignell at usgs.gov Wed Apr 22 17:16:44 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 17:16:44 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: That should have read: https://binstar.org/ioos On Wed, Apr 22, 2015 at 5:14 PM, Signell, Richard wrote: > William, > > I mean a python environment with these packages installed from our > binstar channel (http://conda.binstar.org): > > iris > mpld3 > pyoos > pandas > folium > rdflib > geojson > requests > ipython-notebook > xlrd > mplleaflet > oceans > qrcode > utilities > > On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>> Jupyterhub folks, >>> >>> We are looking for solutions for one week of Python training for about >>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>> >>> We know that Software Carpentry favors students to install on their >>> own laptops, but we are leaning toward a cloud solution to demonstrate >>> the advantages of computing close to large met-ocean datasets. And we >>> could also set up a common environment with packages used in the >>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>> >>> We read this article >>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>> which is similar to what we would like to set up, but the setup >>> sounded rather harrowing. >>> >>> Are there other solutions that would take less setup, yet allow us a >>> multi-user notebook login with cloud resources with a shared custom >>> env? >> >> Could you elaborate on what you mean by "a shared custom environment". >> https://cloud.sagemath.com, which I run, is zero setup, and can easily >> handle the load of 50 people (we often have 600-700 simultaneous >> users). However, there's no notion of shared custom environment, so >> it might not work at all for you. >> >> -- William >> >>> >>> Thanks, >>> Rich >>> >>> -- >>> Dr. Richard P. Signell (508) 457-2229 >>> USGS, 384 Woods Hole Rd. >>> Woods Hole, MA 02543-1598 >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> William (http://wstein.org) >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From wstein at gmail.com Wed Apr 22 17:20:18 2015 From: wstein at gmail.com (William Stein) Date: Wed, 22 Apr 2015 14:20:18 -0700 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: > William, > > I mean a python environment with these packages installed from our > binstar channel (http://conda.binstar.org): > > iris > mpld3 > pyoos > pandas > folium > rdflib > geojson > requests > ipython-notebook > xlrd > mplleaflet > oceans > qrcode > utilities Does Python 2 versus Python 3 matter? Also, if you've tried Jupyter in https://cloud.sagemath.com, would it be sufficient to meet your needs if it had the above packages installed for all projects? Also, how powerful of computing facilities would be required? > > On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>> Jupyterhub folks, >>> >>> We are looking for solutions for one week of Python training for about >>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>> >>> We know that Software Carpentry favors students to install on their >>> own laptops, but we are leaning toward a cloud solution to demonstrate >>> the advantages of computing close to large met-ocean datasets. And we >>> could also set up a common environment with packages used in the >>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>> >>> We read this article >>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>> which is similar to what we would like to set up, but the setup >>> sounded rather harrowing. >>> >>> Are there other solutions that would take less setup, yet allow us a >>> multi-user notebook login with cloud resources with a shared custom >>> env? >> >> Could you elaborate on what you mean by "a shared custom environment". >> https://cloud.sagemath.com, which I run, is zero setup, and can easily >> handle the load of 50 people (we often have 600-700 simultaneous >> users). However, there's no notion of shared custom environment, so >> it might not work at all for you. >> >> -- William >> >>> >>> Thanks, >>> Rich >>> >>> -- >>> Dr. Richard P. Signell (508) 457-2229 >>> USGS, 384 Woods Hole Rd. >>> Woods Hole, MA 02543-1598 >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> William (http://wstein.org) >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- William (http://wstein.org) From rsignell at usgs.gov Wed Apr 22 17:42:38 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 17:42:38 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: We would be fine with Python 2 and Jupyter in https://cloud.sagemath.com would be fine if those packages were installed for all projects. But some of those packages are tough to build, and getting the right versions that all play nice together is tricky. That's why we have our conda channel. We have put a lot of effort into that. Do you have the ability to install from the binstar.org/ioos channel? We don't need heavy duty computational facilities. This is mostly about accessing and visualizing met/ocean data. On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: > On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >> William, >> >> I mean a python environment with these packages installed from our >> binstar channel (http://conda.binstar.org): >> >> iris >> mpld3 >> pyoos >> pandas >> folium >> rdflib >> geojson >> requests >> ipython-notebook >> xlrd >> mplleaflet >> oceans >> qrcode >> utilities > > Does Python 2 versus Python 3 matter? > > Also, if you've tried Jupyter in https://cloud.sagemath.com, would it > be sufficient to meet your needs if it had the above packages > installed for all projects? > > Also, how powerful of computing facilities would be required? > >> >> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>> Jupyterhub folks, >>>> >>>> We are looking for solutions for one week of Python training for about >>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>> >>>> We know that Software Carpentry favors students to install on their >>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>> the advantages of computing close to large met-ocean datasets. And we >>>> could also set up a common environment with packages used in the >>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>> >>>> We read this article >>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>> which is similar to what we would like to set up, but the setup >>>> sounded rather harrowing. >>>> >>>> Are there other solutions that would take less setup, yet allow us a >>>> multi-user notebook login with cloud resources with a shared custom >>>> env? >>> >>> Could you elaborate on what you mean by "a shared custom environment". >>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>> handle the load of 50 people (we often have 600-700 simultaneous >>> users). However, there's no notion of shared custom environment, so >>> it might not work at all for you. >>> >>> -- William >>> >>>> >>>> Thanks, >>>> Rich >>>> >>>> -- >>>> Dr. Richard P. Signell (508) 457-2229 >>>> USGS, 384 Woods Hole Rd. >>>> Woods Hole, MA 02543-1598 >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> William (http://wstein.org) >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Dr. Richard P. Signell (508) 457-2229 >> USGS, 384 Woods Hole Rd. >> Woods Hole, MA 02543-1598 >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > William (http://wstein.org) > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From wstein at gmail.com Wed Apr 22 17:47:14 2015 From: wstein at gmail.com (William Stein) Date: Wed, 22 Apr 2015 14:47:14 -0700 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard wrote: > We would be fine with Python 2 and Jupyter in > https://cloud.sagemath.com would be fine if those packages were > installed for all projects. > > But some of those packages are tough to build, and getting the right > versions that all play nice together is tricky. That's why we have > our conda channel. We have put a lot of effort into that. Do you > have the ability to install from the binstar.org/ioos channel? I don't know. Is this a legal or technical question? Is it completely free? Are there license restrictions? William > > We don't need heavy duty computational facilities. This is mostly > about accessing and visualizing met/ocean data. > > On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: >> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >>> William, >>> >>> I mean a python environment with these packages installed from our >>> binstar channel (http://conda.binstar.org): >>> >>> iris >>> mpld3 >>> pyoos >>> pandas >>> folium >>> rdflib >>> geojson >>> requests >>> ipython-notebook >>> xlrd >>> mplleaflet >>> oceans >>> qrcode >>> utilities >> >> Does Python 2 versus Python 3 matter? >> >> Also, if you've tried Jupyter in https://cloud.sagemath.com, would it >> be sufficient to meet your needs if it had the above packages >> installed for all projects? >> >> Also, how powerful of computing facilities would be required? >> >>> >>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>>> Jupyterhub folks, >>>>> >>>>> We are looking for solutions for one week of Python training for about >>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>>> >>>>> We know that Software Carpentry favors students to install on their >>>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>>> the advantages of computing close to large met-ocean datasets. And we >>>>> could also set up a common environment with packages used in the >>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>>> >>>>> We read this article >>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>> which is similar to what we would like to set up, but the setup >>>>> sounded rather harrowing. >>>>> >>>>> Are there other solutions that would take less setup, yet allow us a >>>>> multi-user notebook login with cloud resources with a shared custom >>>>> env? >>>> >>>> Could you elaborate on what you mean by "a shared custom environment". >>>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>>> handle the load of 50 people (we often have 600-700 simultaneous >>>> users). However, there's no notion of shared custom environment, so >>>> it might not work at all for you. >>>> >>>> -- William >>>> >>>>> >>>>> Thanks, >>>>> Rich >>>>> >>>>> -- >>>>> Dr. Richard P. Signell (508) 457-2229 >>>>> USGS, 384 Woods Hole Rd. >>>>> Woods Hole, MA 02543-1598 >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> -- >>>> William (http://wstein.org) >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> Dr. Richard P. Signell (508) 457-2229 >>> USGS, 384 Woods Hole Rd. >>> Woods Hole, MA 02543-1598 >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> William (http://wstein.org) >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- William (http://wstein.org) From rsignell at usgs.gov Wed Apr 22 18:01:23 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 18:01:23 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: It's a technical question. Everything is completely free and there are no license restrictions. On Wed, Apr 22, 2015 at 5:47 PM, William Stein wrote: > On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard wrote: >> We would be fine with Python 2 and Jupyter in >> https://cloud.sagemath.com would be fine if those packages were >> installed for all projects. >> >> But some of those packages are tough to build, and getting the right >> versions that all play nice together is tricky. That's why we have >> our conda channel. We have put a lot of effort into that. Do you >> have the ability to install from the binstar.org/ioos channel? > > I don't know. Is this a legal or technical question? Is it > completely free? Are there license restrictions? > > William > >> >> We don't need heavy duty computational facilities. This is mostly >> about accessing and visualizing met/ocean data. >> >> On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: >>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >>>> William, >>>> >>>> I mean a python environment with these packages installed from our >>>> binstar channel (http://conda.binstar.org): >>>> >>>> iris >>>> mpld3 >>>> pyoos >>>> pandas >>>> folium >>>> rdflib >>>> geojson >>>> requests >>>> ipython-notebook >>>> xlrd >>>> mplleaflet >>>> oceans >>>> qrcode >>>> utilities >>> >>> Does Python 2 versus Python 3 matter? >>> >>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would it >>> be sufficient to meet your needs if it had the above packages >>> installed for all projects? >>> >>> Also, how powerful of computing facilities would be required? >>> >>>> >>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>>>> Jupyterhub folks, >>>>>> >>>>>> We are looking for solutions for one week of Python training for about >>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>>>> >>>>>> We know that Software Carpentry favors students to install on their >>>>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>>>> the advantages of computing close to large met-ocean datasets. And we >>>>>> could also set up a common environment with packages used in the >>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>>>> >>>>>> We read this article >>>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>>> which is similar to what we would like to set up, but the setup >>>>>> sounded rather harrowing. >>>>>> >>>>>> Are there other solutions that would take less setup, yet allow us a >>>>>> multi-user notebook login with cloud resources with a shared custom >>>>>> env? >>>>> >>>>> Could you elaborate on what you mean by "a shared custom environment". >>>>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>>>> handle the load of 50 people (we often have 600-700 simultaneous >>>>> users). However, there's no notion of shared custom environment, so >>>>> it might not work at all for you. >>>>> >>>>> -- William >>>>> >>>>>> >>>>>> Thanks, >>>>>> Rich >>>>>> >>>>>> -- >>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>> USGS, 384 Woods Hole Rd. >>>>>> Woods Hole, MA 02543-1598 >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> William (http://wstein.org) >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> -- >>>> Dr. Richard P. Signell (508) 457-2229 >>>> USGS, 384 Woods Hole Rd. >>>> Woods Hole, MA 02543-1598 >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> William (http://wstein.org) >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Dr. Richard P. Signell (508) 457-2229 >> USGS, 384 Woods Hole Rd. >> Woods Hole, MA 02543-1598 >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > William (http://wstein.org) > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From rsignell at usgs.gov Wed Apr 22 18:09:52 2015 From: rsignell at usgs.gov (Signell, Richard) Date: Wed, 22 Apr 2015 18:09:52 -0400 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: IPython Folks, I hope this discussion about https://cloud.sagemath.com hasn't discouraged discussion of other potential solutions. Do folks have experience with digitalocean, cloud9 or other cloud provisioning that could support Jupyterhub with Anaconda? -Rich On Wed, Apr 22, 2015 at 6:01 PM, Signell, Richard wrote: > It's a technical question. Everything is completely free and there > are no license restrictions. > > On Wed, Apr 22, 2015 at 5:47 PM, William Stein wrote: >> On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard wrote: >>> We would be fine with Python 2 and Jupyter in >>> https://cloud.sagemath.com would be fine if those packages were >>> installed for all projects. >>> >>> But some of those packages are tough to build, and getting the right >>> versions that all play nice together is tricky. That's why we have >>> our conda channel. We have put a lot of effort into that. Do you >>> have the ability to install from the binstar.org/ioos channel? >> >> I don't know. Is this a legal or technical question? Is it >> completely free? Are there license restrictions? >> >> William >> >>> >>> We don't need heavy duty computational facilities. This is mostly >>> about accessing and visualizing met/ocean data. >>> >>> On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: >>>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >>>>> William, >>>>> >>>>> I mean a python environment with these packages installed from our >>>>> binstar channel (http://conda.binstar.org): >>>>> >>>>> iris >>>>> mpld3 >>>>> pyoos >>>>> pandas >>>>> folium >>>>> rdflib >>>>> geojson >>>>> requests >>>>> ipython-notebook >>>>> xlrd >>>>> mplleaflet >>>>> oceans >>>>> qrcode >>>>> utilities >>>> >>>> Does Python 2 versus Python 3 matter? >>>> >>>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would it >>>> be sufficient to meet your needs if it had the above packages >>>> installed for all projects? >>>> >>>> Also, how powerful of computing facilities would be required? >>>> >>>>> >>>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>>>>> Jupyterhub folks, >>>>>>> >>>>>>> We are looking for solutions for one week of Python training for about >>>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>>>>> >>>>>>> We know that Software Carpentry favors students to install on their >>>>>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>>>>> the advantages of computing close to large met-ocean datasets. And we >>>>>>> could also set up a common environment with packages used in the >>>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>>>>> >>>>>>> We read this article >>>>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>>>> which is similar to what we would like to set up, but the setup >>>>>>> sounded rather harrowing. >>>>>>> >>>>>>> Are there other solutions that would take less setup, yet allow us a >>>>>>> multi-user notebook login with cloud resources with a shared custom >>>>>>> env? >>>>>> >>>>>> Could you elaborate on what you mean by "a shared custom environment". >>>>>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>>>>> handle the load of 50 people (we often have 600-700 simultaneous >>>>>> users). However, there's no notion of shared custom environment, so >>>>>> it might not work at all for you. >>>>>> >>>>>> -- William >>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> Rich >>>>>>> >>>>>>> -- >>>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>>> USGS, 384 Woods Hole Rd. >>>>>>> Woods Hole, MA 02543-1598 >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> William (http://wstein.org) >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> Dr. Richard P. Signell (508) 457-2229 >>>>> USGS, 384 Woods Hole Rd. >>>>> Woods Hole, MA 02543-1598 >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> -- >>>> William (http://wstein.org) >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> Dr. Richard P. Signell (508) 457-2229 >>> USGS, 384 Woods Hole Rd. >>> Woods Hole, MA 02543-1598 >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> William (http://wstein.org) >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 -- Dr. Richard P. Signell (508) 457-2229 USGS, 384 Woods Hole Rd. Woods Hole, MA 02543-1598 From steve at holdenweb.com Wed Apr 22 18:17:02 2015 From: steve at holdenweb.com (Steve Holden) Date: Wed, 22 Apr 2015 15:17:02 -0700 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: <8A8EF44D-F6E0-461F-A789-BAEB9FBC7FD9@holdenweb.com> hi there, Continuum actually publish community images on AWS with at least Conda and the IPython notebook pre-installed, though I haven't checked for the specifically needed dependencies. S On Apr 22, 2015, at 3:09 PM, "Signell, Richard" wrote: > IPython Folks, > I hope this discussion about https://cloud.sagemath.com hasn't > discouraged discussion of other potential solutions. > > Do folks have experience with digitalocean, cloud9 or other cloud > provisioning that could support Jupyterhub with Anaconda? > > -Rich > > On Wed, Apr 22, 2015 at 6:01 PM, Signell, Richard wrote: >> It's a technical question. Everything is completely free and there >> are no license restrictions. >> >> On Wed, Apr 22, 2015 at 5:47 PM, William Stein wrote: >>> On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard wrote: >>>> We would be fine with Python 2 and Jupyter in >>>> https://cloud.sagemath.com would be fine if those packages were >>>> installed for all projects. >>>> >>>> But some of those packages are tough to build, and getting the right >>>> versions that all play nice together is tricky. That's why we have >>>> our conda channel. We have put a lot of effort into that. Do you >>>> have the ability to install from the binstar.org/ioos channel? >>> >>> I don't know. Is this a legal or technical question? Is it >>> completely free? Are there license restrictions? >>> >>> William >>> >>>> >>>> We don't need heavy duty computational facilities. This is mostly >>>> about accessing and visualizing met/ocean data. >>>> >>>> On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: >>>>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >>>>>> William, >>>>>> >>>>>> I mean a python environment with these packages installed from our >>>>>> binstar channel (http://conda.binstar.org): >>>>>> >>>>>> iris >>>>>> mpld3 >>>>>> pyoos >>>>>> pandas >>>>>> folium >>>>>> rdflib >>>>>> geojson >>>>>> requests >>>>>> ipython-notebook >>>>>> xlrd >>>>>> mplleaflet >>>>>> oceans >>>>>> qrcode >>>>>> utilities >>>>> >>>>> Does Python 2 versus Python 3 matter? >>>>> >>>>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would it >>>>> be sufficient to meet your needs if it had the above packages >>>>> installed for all projects? >>>>> >>>>> Also, how powerful of computing facilities would be required? >>>>> >>>>>> >>>>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>>>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>>>>>> Jupyterhub folks, >>>>>>>> >>>>>>>> We are looking for solutions for one week of Python training for about >>>>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>>>>>> >>>>>>>> We know that Software Carpentry favors students to install on their >>>>>>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>>>>>> the advantages of computing close to large met-ocean datasets. And we >>>>>>>> could also set up a common environment with packages used in the >>>>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>>>>>> >>>>>>>> We read this article >>>>>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>>>>> which is similar to what we would like to set up, but the setup >>>>>>>> sounded rather harrowing. >>>>>>>> >>>>>>>> Are there other solutions that would take less setup, yet allow us a >>>>>>>> multi-user notebook login with cloud resources with a shared custom >>>>>>>> env? >>>>>>> >>>>>>> Could you elaborate on what you mean by "a shared custom environment". >>>>>>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>>>>>> handle the load of 50 people (we often have 600-700 simultaneous >>>>>>> users). However, there's no notion of shared custom environment, so >>>>>>> it might not work at all for you. >>>>>>> >>>>>>> -- William >>>>>>> >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Rich >>>>>>>> >>>>>>>> -- >>>>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>>>> USGS, 384 Woods Hole Rd. >>>>>>>> Woods Hole, MA 02543-1598 >>>>>>>> _______________________________________________ >>>>>>>> IPython-dev mailing list >>>>>>>> IPython-dev at scipy.org >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> William (http://wstein.org) >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>> USGS, 384 Woods Hole Rd. >>>>>> Woods Hole, MA 02543-1598 >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> William (http://wstein.org) >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> -- >>>> Dr. Richard P. Signell (508) 457-2229 >>>> USGS, 384 Woods Hole Rd. >>>> Woods Hole, MA 02543-1598 >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> William (http://wstein.org) >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Dr. Richard P. Signell (508) 457-2229 >> USGS, 384 Woods Hole Rd. >> Woods Hole, MA 02543-1598 > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Steve Holden steve at holdenweb.com / +1 571 484 6266 / +44 113 320 2335 / @holdenweb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Apr 22 18:27:29 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 22 Apr 2015 15:27:29 -0700 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: If you plan on using anaconda, I would directly ask continuum for temporary wakari accounts. You can also build a docker image with your requirement, and if users have a github account it is pretty easy (apparently) to configure jupyterhub with OAuthtenticator plugin with github. Then you "just" need the users github handle. We have that privately hosted on Rackspace OnMetal servers, but I guess Amazon/Azure or alike is not harder. This is also what Oliver Grisel have used for SciKit Learn Tutorials (but with no logins) during conferences. I think also one of the question is how much resources do you plan to use, are you searching for a "Sponsor" do provide the resources (and eventually fidelize users) , or do you actually have fund to fiance the server(s) for a week. -- M On Wed, Apr 22, 2015 at 3:09 PM, Signell, Richard wrote: > IPython Folks, > I hope this discussion about https://cloud.sagemath.com hasn't > discouraged discussion of other potential solutions. > > Do folks have experience with digitalocean, cloud9 or other cloud > provisioning that could support Jupyterhub with Anaconda? > > -Rich > > On Wed, Apr 22, 2015 at 6:01 PM, Signell, Richard wrote: >> It's a technical question. Everything is completely free and there >> are no license restrictions. >> >> On Wed, Apr 22, 2015 at 5:47 PM, William Stein wrote: >>> On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard wrote: >>>> We would be fine with Python 2 and Jupyter in >>>> https://cloud.sagemath.com would be fine if those packages were >>>> installed for all projects. >>>> >>>> But some of those packages are tough to build, and getting the right >>>> versions that all play nice together is tricky. That's why we have >>>> our conda channel. We have put a lot of effort into that. Do you >>>> have the ability to install from the binstar.org/ioos channel? >>> >>> I don't know. Is this a legal or technical question? Is it >>> completely free? Are there license restrictions? >>> >>> William >>> >>>> >>>> We don't need heavy duty computational facilities. This is mostly >>>> about accessing and visualizing met/ocean data. >>>> >>>> On Wed, Apr 22, 2015 at 5:20 PM, William Stein wrote: >>>>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard wrote: >>>>>> William, >>>>>> >>>>>> I mean a python environment with these packages installed from our >>>>>> binstar channel (http://conda.binstar.org): >>>>>> >>>>>> iris >>>>>> mpld3 >>>>>> pyoos >>>>>> pandas >>>>>> folium >>>>>> rdflib >>>>>> geojson >>>>>> requests >>>>>> ipython-notebook >>>>>> xlrd >>>>>> mplleaflet >>>>>> oceans >>>>>> qrcode >>>>>> utilities >>>>> >>>>> Does Python 2 versus Python 3 matter? >>>>> >>>>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would it >>>>> be sufficient to meet your needs if it had the above packages >>>>> installed for all projects? >>>>> >>>>> Also, how powerful of computing facilities would be required? >>>>> >>>>>> >>>>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein wrote: >>>>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard wrote: >>>>>>>> Jupyterhub folks, >>>>>>>> >>>>>>>> We are looking for solutions for one week of Python training for about >>>>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >>>>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >>>>>>>> >>>>>>>> We know that Software Carpentry favors students to install on their >>>>>>>> own laptops, but we are leaning toward a cloud solution to demonstrate >>>>>>>> the advantages of computing close to large met-ocean datasets. And we >>>>>>>> could also set up a common environment with packages used in the >>>>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >>>>>>>> >>>>>>>> We read this article >>>>>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>>>>> which is similar to what we would like to set up, but the setup >>>>>>>> sounded rather harrowing. >>>>>>>> >>>>>>>> Are there other solutions that would take less setup, yet allow us a >>>>>>>> multi-user notebook login with cloud resources with a shared custom >>>>>>>> env? >>>>>>> >>>>>>> Could you elaborate on what you mean by "a shared custom environment". >>>>>>> https://cloud.sagemath.com, which I run, is zero setup, and can easily >>>>>>> handle the load of 50 people (we often have 600-700 simultaneous >>>>>>> users). However, there's no notion of shared custom environment, so >>>>>>> it might not work at all for you. >>>>>>> >>>>>>> -- William >>>>>>> >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Rich >>>>>>>> >>>>>>>> -- >>>>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>>>> USGS, 384 Woods Hole Rd. >>>>>>>> Woods Hole, MA 02543-1598 >>>>>>>> _______________________________________________ >>>>>>>> IPython-dev mailing list >>>>>>>> IPython-dev at scipy.org >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> William (http://wstein.org) >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dr. Richard P. Signell (508) 457-2229 >>>>>> USGS, 384 Woods Hole Rd. >>>>>> Woods Hole, MA 02543-1598 >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> William (http://wstein.org) >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> -- >>>> Dr. Richard P. Signell (508) 457-2229 >>>> USGS, 384 Woods Hole Rd. >>>> Woods Hole, MA 02543-1598 >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> William (http://wstein.org) >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Dr. Richard P. Signell (508) 457-2229 >> USGS, 384 Woods Hole Rd. >> Woods Hole, MA 02543-1598 > > > > -- > Dr. Richard P. Signell (508) 457-2229 > USGS, 384 Woods Hole Rd. > Woods Hole, MA 02543-1598 > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From wes.turner at gmail.com Wed Apr 22 22:21:09 2015 From: wes.turner at gmail.com (Wes Turner) Date: Wed, 22 Apr 2015 21:21:09 -0500 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: These Dockerfiles might be useful: * https://registry.hub.docker.com/u/ipython/scipyserver/ * https://registry.hub.docker.com/repos/jupyter/ On Wed, Apr 22, 2015 at 5:27 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > If you plan on using anaconda, I would directly ask continuum for > temporary wakari accounts. > > You can also build a docker image with your requirement, and if users > have a github account it is pretty easy (apparently) to configure > jupyterhub with OAuthtenticator plugin with github. Then you "just" > need the users github handle. We have that privately hosted on > Rackspace OnMetal servers, but I guess Amazon/Azure or alike is not > harder. > > This is also what Oliver Grisel have used for SciKit Learn Tutorials > (but with no logins) during conferences. > > I think also one of the question is how much resources do you plan to > use, are you searching for a "Sponsor" do provide the resources (and > eventually fidelize users) , or do you actually have fund to fiance > the server(s) for a week. > > -- > M > > On Wed, Apr 22, 2015 at 3:09 PM, Signell, Richard > wrote: > > IPython Folks, > > I hope this discussion about https://cloud.sagemath.com hasn't > > discouraged discussion of other potential solutions. > > > > Do folks have experience with digitalocean, cloud9 or other cloud > > provisioning that could support Jupyterhub with Anaconda? > > > > -Rich > > > > On Wed, Apr 22, 2015 at 6:01 PM, Signell, Richard > wrote: > >> It's a technical question. Everything is completely free and there > >> are no license restrictions. > >> > >> On Wed, Apr 22, 2015 at 5:47 PM, William Stein > wrote: > >>> On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard > wrote: > >>>> We would be fine with Python 2 and Jupyter in > >>>> https://cloud.sagemath.com would be fine if those packages were > >>>> installed for all projects. > >>>> > >>>> But some of those packages are tough to build, and getting the right > >>>> versions that all play nice together is tricky. That's why we have > >>>> our conda channel. We have put a lot of effort into that. Do you > >>>> have the ability to install from the binstar.org/ioos channel? > >>> > >>> I don't know. Is this a legal or technical question? Is it > >>> completely free? Are there license restrictions? > >>> > >>> William > >>> > >>>> > >>>> We don't need heavy duty computational facilities. This is mostly > >>>> about accessing and visualizing met/ocean data. > >>>> > >>>> On Wed, Apr 22, 2015 at 5:20 PM, William Stein > wrote: > >>>>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard > wrote: > >>>>>> William, > >>>>>> > >>>>>> I mean a python environment with these packages installed from our > >>>>>> binstar channel (http://conda.binstar.org): > >>>>>> > >>>>>> iris > >>>>>> mpld3 > >>>>>> pyoos > >>>>>> pandas > >>>>>> folium > >>>>>> rdflib > >>>>>> geojson > >>>>>> requests > >>>>>> ipython-notebook > >>>>>> xlrd > >>>>>> mplleaflet > >>>>>> oceans > >>>>>> qrcode > >>>>>> utilities > >>>>> > >>>>> Does Python 2 versus Python 3 matter? > >>>>> > >>>>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would > it > >>>>> be sufficient to meet your needs if it had the above packages > >>>>> installed for all projects? > >>>>> > >>>>> Also, how powerful of computing facilities would be required? > >>>>> > >>>>>> > >>>>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein > wrote: > >>>>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard < > rsignell at usgs.gov> wrote: > >>>>>>>> Jupyterhub folks, > >>>>>>>> > >>>>>>>> We are looking for solutions for one week of Python training for > about > >>>>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in > >>>>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. > >>>>>>>> > >>>>>>>> We know that Software Carpentry favors students to install on > their > >>>>>>>> own laptops, but we are leaning toward a cloud solution to > demonstrate > >>>>>>>> the advantages of computing close to large met-ocean datasets. > And we > >>>>>>>> could also set up a common environment with packages used in the > >>>>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). > >>>>>>>> > >>>>>>>> We read this article > >>>>>>>> > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > >>>>>>>> which is similar to what we would like to set up, but the setup > >>>>>>>> sounded rather harrowing. > >>>>>>>> > >>>>>>>> Are there other solutions that would take less setup, yet allow > us a > >>>>>>>> multi-user notebook login with cloud resources with a shared > custom > >>>>>>>> env? > >>>>>>> > >>>>>>> Could you elaborate on what you mean by "a shared custom > environment". > >>>>>>> https://cloud.sagemath.com, which I run, is zero setup, and can > easily > >>>>>>> handle the load of 50 people (we often have 600-700 simultaneous > >>>>>>> users). However, there's no notion of shared custom environment, > so > >>>>>>> it might not work at all for you. > >>>>>>> > >>>>>>> -- William > >>>>>>> > >>>>>>>> > >>>>>>>> Thanks, > >>>>>>>> Rich > >>>>>>>> > >>>>>>>> -- > >>>>>>>> Dr. Richard P. Signell (508) 457-2229 > >>>>>>>> USGS, 384 Woods Hole Rd. > >>>>>>>> Woods Hole, MA 02543-1598 > >>>>>>>> _______________________________________________ > >>>>>>>> IPython-dev mailing list > >>>>>>>> IPython-dev at scipy.org > >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> William (http://wstein.org) > >>>>>>> _______________________________________________ > >>>>>>> IPython-dev mailing list > >>>>>>> IPython-dev at scipy.org > >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> Dr. Richard P. Signell (508) 457-2229 > >>>>>> USGS, 384 Woods Hole Rd. > >>>>>> Woods Hole, MA 02543-1598 > >>>>>> _______________________________________________ > >>>>>> IPython-dev mailing list > >>>>>> IPython-dev at scipy.org > >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> William (http://wstein.org) > >>>>> _______________________________________________ > >>>>> IPython-dev mailing list > >>>>> IPython-dev at scipy.org > >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> > >>>> > >>>> > >>>> -- > >>>> Dr. Richard P. Signell (508) 457-2229 > >>>> USGS, 384 Woods Hole Rd. > >>>> Woods Hole, MA 02543-1598 > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >>> > >>> > >>> -- > >>> William (http://wstein.org) > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> -- > >> Dr. Richard P. Signell (508) 457-2229 > >> USGS, 384 Woods Hole Rd. > >> Woods Hole, MA 02543-1598 > > > > > > > > -- > > Dr. Richard P. Signell (508) 457-2229 > > USGS, 384 Woods Hole Rd. > > Woods Hole, MA 02543-1598 > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Wes Turner https://westurner.org https://wrdrd.com/docs/consulting/knowledge-engineering -------------- next part -------------- An HTML attachment was scrubbed... URL: From one at kentran.net Wed Apr 22 22:28:29 2015 From: one at kentran.net (Kenneth Tran) Date: Wed, 22 Apr 2015 19:28:29 -0700 Subject: [IPython-dev] Deploying JupyterHub for Education In-Reply-To: References: Message-ID: Jess, I was reading your blog post and got stuck at 1. Build a different image for each user and create that user inside the container at build time. Then, run the container as that user. 2. Build a single image that runs as root, creates the user at runtime, and then runs the notebook server itself as the user with sudo. What would prevent you from the following: (i) build a single image as root; (ii) spin up a container and mount the home directory (plus files such as /etc/group,passwd,shadow) on the host to the container file system; (iii) then run Jupyter notebook server as the user? -Ken On Wed, Mar 25, 2015 at 12:36 PM, Jessica B. Hamrick wrote: > Hi all, > > Over the past few months I've set up a deployment of JupyterHub backed by > Docker and Docker Swarm for a class that I'm teaching this spring. I wrote > a blog post about it over on the Rackspace developer blog, if you're > interested: > > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > > Thanks to people who helped out with this, especially Min and Kyle! > > Cheers, > Jess > > -- > UC Berkeley, Department of Psychology > Computational Cognitive Science Lab > http://www.jesshamrick.com > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From one at kentran.net Wed Apr 22 22:43:00 2015 From: one at kentran.net (Kenneth Tran) Date: Wed, 22 Apr 2015 19:43:00 -0700 Subject: [IPython-dev] Deploying JupyterHub for Education In-Reply-To: References: Message-ID: Another related question is: why did you need to spawn Jupyter Notebook Servers in Docker containers? Could the node just launch a Jupyter Notebook Server *as the user* when he/she logs in*?* On Wed, Apr 22, 2015 at 7:28 PM, Kenneth Tran wrote: > Jess, > > I was reading your blog post and got stuck at > > > 1. Build a different image for each user and create that user inside > the container at build time. Then, run the container as that user. > 2. Build a single image that runs as root, creates the user at > runtime, and then runs the notebook server itself as the user with sudo > . > > What would prevent you from the following: (i) build a single image as > root; (ii) spin up a container and mount the home directory (plus files > such as /etc/group,passwd,shadow) on the host to the container file system; > (iii) then run Jupyter notebook server as the user? > > -Ken > > > On Wed, Mar 25, 2015 at 12:36 PM, Jessica B. Hamrick < > jhamrick at berkeley.edu> wrote: > >> Hi all, >> >> Over the past few months I've set up a deployment of JupyterHub backed by >> Docker and Docker Swarm for a class that I'm teaching this spring. I wrote >> a blog post about it over on the Rackspace developer blog, if you're >> interested: >> >> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >> >> Thanks to people who helped out with this, especially Min and Kyle! >> >> Cheers, >> Jess >> >> -- >> UC Berkeley, Department of Psychology >> Computational Cognitive Science Lab >> http://www.jesshamrick.com >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Thu Apr 23 11:08:05 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 23 Apr 2015 10:08:05 -0500 Subject: [IPython-dev] Options for cloud-based Jupyterhub for Python training? In-Reply-To: References: Message-ID: CC'ing this here https://github.com/ipython/ipython/wiki/Install:-Docker ``` ## IPython Docker Configurations IPython Docker Hub Repos: **https://registry.hub.docker.com/u/ipython/** Source: https://github.com/ipython/docker-notebook A few ways to install IPython with Docker: >>> itertools.product(['IPython', 'IPython Notebook'], ['', '+ SciPy Stack']) * IPython: ``docker run -it ipython/ipython`` * https://registry.hub.docker.com/u/ipython/ipython * **https://github.com/ipython/ipython/blob/master/Dockerfile** * IPython + SciPy Stack (``ipython/scipystack``): ``docker run -it ipython/scipystack`` * https://registry.hub.docker.com/u/ipython/scipystack/ * https://github.com/ipython/docker-notebook/blob/master/scipystack/Dockerfile * https://github.com/ipython/docker-notebook/blob/master/scipystack/build_scipy_stack.sh * IPython Notebook (``ipython/notebook``): ``docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/notebook`` Then access IPython notebook over SSL/TLS at https://localhost * https://registry.hub.docker.com/u/ipython/notebook/ * https://github.com/ipython/docker-notebook/blob/master/notebook/Dockerfile * IPython Notebook + SciPy Stack (``ipython/scipyserver``): ``docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/scipyserver`` * https://registry.hub.docker.com/u/ipython/scipyserver/ * https://github.com/ipython/docker-notebook/blob/master/scipyserver/Dockerfile ## Links Jupyter / JupyterHub * https://github.com/jupyter/jupyterhub/ * https://github.com/jupyter/jupyterhub/blob/master/Dockerfile * https://registry.hub.docker.com/u/jupyter/ * https://registry.hub.docker.com/u/jupyter/jupyterhub * **https://github.com/jupyter/jupyterhub/wiki/Spawners** ``` On Wed, Apr 22, 2015 at 9:21 PM, Wes Turner wrote: > These Dockerfiles might be useful: > * https://registry.hub.docker.com/u/ipython/scipyserver/ > * https://registry.hub.docker.com/repos/jupyter/ > > On Wed, Apr 22, 2015 at 5:27 PM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> If you plan on using anaconda, I would directly ask continuum for >> temporary wakari accounts. >> >> You can also build a docker image with your requirement, and if users >> have a github account it is pretty easy (apparently) to configure >> jupyterhub with OAuthtenticator plugin with github. Then you "just" >> need the users github handle. We have that privately hosted on >> Rackspace OnMetal servers, but I guess Amazon/Azure or alike is not >> harder. >> >> This is also what Oliver Grisel have used for SciKit Learn Tutorials >> (but with no logins) during conferences. >> >> I think also one of the question is how much resources do you plan to >> use, are you searching for a "Sponsor" do provide the resources (and >> eventually fidelize users) , or do you actually have fund to fiance >> the server(s) for a week. >> >> -- >> M >> >> On Wed, Apr 22, 2015 at 3:09 PM, Signell, Richard >> wrote: >> > IPython Folks, >> > I hope this discussion about https://cloud.sagemath.com hasn't >> > discouraged discussion of other potential solutions. >> > >> > Do folks have experience with digitalocean, cloud9 or other cloud >> > provisioning that could support Jupyterhub with Anaconda? >> > >> > -Rich >> > >> > On Wed, Apr 22, 2015 at 6:01 PM, Signell, Richard >> wrote: >> >> It's a technical question. Everything is completely free and there >> >> are no license restrictions. >> >> >> >> On Wed, Apr 22, 2015 at 5:47 PM, William Stein >> wrote: >> >>> On Wed, Apr 22, 2015 at 2:42 PM, Signell, Richard >> wrote: >> >>>> We would be fine with Python 2 and Jupyter in >> >>>> https://cloud.sagemath.com would be fine if those packages were >> >>>> installed for all projects. >> >>>> >> >>>> But some of those packages are tough to build, and getting the right >> >>>> versions that all play nice together is tricky. That's why we have >> >>>> our conda channel. We have put a lot of effort into that. Do you >> >>>> have the ability to install from the binstar.org/ioos channel? >> >>> >> >>> I don't know. Is this a legal or technical question? Is it >> >>> completely free? Are there license restrictions? >> >>> >> >>> William >> >>> >> >>>> >> >>>> We don't need heavy duty computational facilities. This is mostly >> >>>> about accessing and visualizing met/ocean data. >> >>>> >> >>>> On Wed, Apr 22, 2015 at 5:20 PM, William Stein >> wrote: >> >>>>> On Wed, Apr 22, 2015 at 2:14 PM, Signell, Richard < >> rsignell at usgs.gov> wrote: >> >>>>>> William, >> >>>>>> >> >>>>>> I mean a python environment with these packages installed from our >> >>>>>> binstar channel (http://conda.binstar.org): >> >>>>>> >> >>>>>> iris >> >>>>>> mpld3 >> >>>>>> pyoos >> >>>>>> pandas >> >>>>>> folium >> >>>>>> rdflib >> >>>>>> geojson >> >>>>>> requests >> >>>>>> ipython-notebook >> >>>>>> xlrd >> >>>>>> mplleaflet >> >>>>>> oceans >> >>>>>> qrcode >> >>>>>> utilities >> >>>>> >> >>>>> Does Python 2 versus Python 3 matter? >> >>>>> >> >>>>> Also, if you've tried Jupyter in https://cloud.sagemath.com, would >> it >> >>>>> be sufficient to meet your needs if it had the above packages >> >>>>> installed for all projects? >> >>>>> >> >>>>> Also, how powerful of computing facilities would be required? >> >>>>> >> >>>>>> >> >>>>>> On Wed, Apr 22, 2015 at 5:09 PM, William Stein >> wrote: >> >>>>>>> On Wed, Apr 22, 2015 at 2:06 PM, Signell, Richard < >> rsignell at usgs.gov> wrote: >> >>>>>>>> Jupyterhub folks, >> >>>>>>>> >> >>>>>>>> We are looking for solutions for one week of Python training for >> about >> >>>>>>>> 50 met-ocean students at the NSF-funded Unidata Program Center in >> >>>>>>>> Boulder (in June). And we are thinking Jupyterhub on the cloud. >> >>>>>>>> >> >>>>>>>> We know that Software Carpentry favors students to install on >> their >> >>>>>>>> own laptops, but we are leaning toward a cloud solution to >> demonstrate >> >>>>>>>> the advantages of computing close to large met-ocean datasets. >> And we >> >>>>>>>> could also set up a common environment with packages used in the >> >>>>>>>> met-ocean community (e.g. http://conda.binstar.org/ioos). >> >>>>>>>> >> >>>>>>>> We read this article >> >>>>>>>> >> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >> >>>>>>>> which is similar to what we would like to set up, but the setup >> >>>>>>>> sounded rather harrowing. >> >>>>>>>> >> >>>>>>>> Are there other solutions that would take less setup, yet allow >> us a >> >>>>>>>> multi-user notebook login with cloud resources with a shared >> custom >> >>>>>>>> env? >> >>>>>>> >> >>>>>>> Could you elaborate on what you mean by "a shared custom >> environment". >> >>>>>>> https://cloud.sagemath.com, which I run, is zero setup, and can >> easily >> >>>>>>> handle the load of 50 people (we often have 600-700 simultaneous >> >>>>>>> users). However, there's no notion of shared custom >> environment, so >> >>>>>>> it might not work at all for you. >> >>>>>>> >> >>>>>>> -- William >> >>>>>>> >> >>>>>>>> >> >>>>>>>> Thanks, >> >>>>>>>> Rich >> >>>>>>>> >> >>>>>>>> -- >> >>>>>>>> Dr. Richard P. Signell (508) 457-2229 >> >>>>>>>> USGS, 384 Woods Hole Rd. >> >>>>>>>> Woods Hole, MA 02543-1598 >> >>>>>>>> _______________________________________________ >> >>>>>>>> IPython-dev mailing list >> >>>>>>>> IPython-dev at scipy.org >> >>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> -- >> >>>>>>> William (http://wstein.org) >> >>>>>>> _______________________________________________ >> >>>>>>> IPython-dev mailing list >> >>>>>>> IPython-dev at scipy.org >> >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> Dr. Richard P. Signell (508) 457-2229 >> >>>>>> USGS, 384 Woods Hole Rd. >> >>>>>> Woods Hole, MA 02543-1598 >> >>>>>> _______________________________________________ >> >>>>>> IPython-dev mailing list >> >>>>>> IPython-dev at scipy.org >> >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>>>> >> >>>>> >> >>>>> >> >>>>> -- >> >>>>> William (http://wstein.org) >> >>>>> _______________________________________________ >> >>>>> IPython-dev mailing list >> >>>>> IPython-dev at scipy.org >> >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Dr. Richard P. Signell (508) 457-2229 >> >>>> USGS, 384 Woods Hole Rd. >> >>>> Woods Hole, MA 02543-1598 >> >>>> _______________________________________________ >> >>>> IPython-dev mailing list >> >>>> IPython-dev at scipy.org >> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> >>> >> >>> >> >>> -- >> >>> William (http://wstein.org) >> >>> _______________________________________________ >> >>> IPython-dev mailing list >> >>> IPython-dev at scipy.org >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> >> >> -- >> >> Dr. Richard P. Signell (508) 457-2229 >> >> USGS, 384 Woods Hole Rd. >> >> Woods Hole, MA 02543-1598 >> > >> > >> > >> > -- >> > Dr. Richard P. Signell (508) 457-2229 >> > USGS, 384 Woods Hole Rd. >> > Woods Hole, MA 02543-1598 >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Wes Turner > https://westurner.org > https://wrdrd.com/docs/consulting/knowledge-engineering > -- Wes Turner https://westurner.org https://wrdrd.com/docs/consulting/knowledge-engineering -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Apr 23 12:58:04 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 23 Apr 2015 09:58:04 -0700 Subject: [IPython-dev] Rodeo - a data science IDE for Python Message-ID: I just saw this interesting new entrant in the scientific computing space: http://blog.yhathq.com/posts/introducing-rodeo.html Summary: Rodeo is conceptually more like a traditional IDE (text editor, terminal, side panels), with an HTML/JS UI. It uses an IPython kernel in the backend, and the authors are billing it as a lightweight alternative to the Notebook. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Thu Apr 23 15:33:51 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 23 Apr 2015 12:33:51 -0700 Subject: [IPython-dev] Rodeo - a data science IDE for Python In-Reply-To: References: Message-ID: Great! We really need that web console to replace the qt console in the notebook desktop... On Thu, Apr 23, 2015 at 9:58 AM, Thomas Kluyver wrote: > I just saw this interesting new entrant in the scientific computing space: > > http://blog.yhathq.com/posts/introducing-rodeo.html > > Summary: Rodeo is conceptually more like a traditional IDE (text editor, > terminal, side panels), with an HTML/JS UI. It uses an IPython kernel in > the backend, and the authors are billing it as a lightweight alternative to > the Notebook. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.froger.ml at mailoo.org Fri Apr 24 07:11:58 2015 From: david.froger.ml at mailoo.org (David Froger) Date: Fri, 24 Apr 2015 13:11:58 +0200 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) Message-ID: <20150424111158.14514.86984@otis.rocq.inria.fr> Hi, I'm trying to configure ipython-notebook 3.1 (installed with miniconda) to use CodeMirror Vim keymaps. I put in my ~/.ipython/profile_default/static/custom/custom.js: require(['base/js/namespace', 'base/js/events'], function(IPython, events) { events.on('app_initialized.NotebookApp', function() { $.getScript('/static/components/codemirror/keymap/vim.js'); IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" }); }); But I got the error when openening a notebook: TypeError: next is undefined (codemirror.js:4622) What is the correct way to get CodeMirror Vim Keymaps in ipython-notebook 3.1? Thanks, David From david.froger.ml at mailoo.org Fri Apr 24 07:21:48 2015 From: david.froger.ml at mailoo.org (David Froger) Date: Fri, 24 Apr 2015 13:21:48 +0200 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) In-Reply-To: <20150424111158.14514.86984@otis.rocq.inria.fr> References: <20150424111158.14514.86984@otis.rocq.inria.fr> Message-ID: <20150424112148.14514.91581@otis.rocq.inria.fr> This fix the error: require([ 'base/js/namespace', 'base/js/events', 'components/codemirror/keymap/vim' ], function(IPython, events) { events.on('app_initialized.NotebookApp', function() { IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" }); }); I'm now trying to understand how to switch beetween Vim modes. Quoting David Froger (2015-04-24 13:11:58) > Hi, > > I'm trying to configure ipython-notebook 3.1 (installed with miniconda) to use > CodeMirror Vim keymaps. > > I put in my ~/.ipython/profile_default/static/custom/custom.js: > > require(['base/js/namespace', 'base/js/events'], function(IPython, events) { > events.on('app_initialized.NotebookApp', function() { > $.getScript('/static/components/codemirror/keymap/vim.js'); > IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > }); > }); > > But I got the error when openening a notebook: > > TypeError: next is undefined (codemirror.js:4622) > > What is the correct way to get CodeMirror Vim Keymaps in ipython-notebook 3.1? > > Thanks, > David > From takowl at gmail.com Fri Apr 24 12:57:27 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 24 Apr 2015 09:57:27 -0700 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) In-Reply-To: <20150424112148.14514.91581@otis.rocq.inria.fr> References: <20150424111158.14514.86984@otis.rocq.inria.fr> <20150424112148.14514.91581@otis.rocq.inria.fr> Message-ID: Hi David, You might want to look at Paul Ivanov's Vimception extension: https://github.com/ivanov/ipython-vimception Thomas On 24 April 2015 at 04:21, David Froger wrote: > This fix the error: > > require([ > 'base/js/namespace', > 'base/js/events', > 'components/codemirror/keymap/vim' > ], function(IPython, events) { > events.on('app_initialized.NotebookApp', function() { > IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > }); > }); > > I'm now trying to understand how to switch beetween Vim modes. > > > Quoting David Froger (2015-04-24 13:11:58) > > Hi, > > > > I'm trying to configure ipython-notebook 3.1 (installed with miniconda) > to use > > CodeMirror Vim keymaps. > > > > I put in my ~/.ipython/profile_default/static/custom/custom.js: > > > > require(['base/js/namespace', 'base/js/events'], function(IPython, > events) { > > events.on('app_initialized.NotebookApp', function() { > > $.getScript('/static/components/codemirror/keymap/vim.js'); > > IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > > }); > > }); > > > > But I got the error when openening a notebook: > > > > TypeError: next is undefined (codemirror.js:4622) > > > > What is the correct way to get CodeMirror Vim Keymaps in > ipython-notebook 3.1? > > > > Thanks, > > David > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frandelapena at gmail.com Fri Apr 24 13:00:56 2015 From: frandelapena at gmail.com (Francisco de la Pena) Date: Fri, 24 Apr 2015 18:00:56 +0100 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) In-Reply-To: References: <20150424111158.14514.86984@otis.rocq.inria.fr> <20150424112148.14514.91581@otis.rocq.inria.fr> Message-ID: <1429894856.4723.169.camel@gmail.com> Unfortunately it seems that Vimception does not yet work with IPython 3. See https://github.com/ivanov/ipython-vimception/issues/19 . Francisco On Fri, 2015-04-24 at 09:57 -0700, Thomas Kluyver wrote: > Hi David, > > > > You might want to look at Paul Ivanov's Vimception extension:# > https://github.com/ivanov/ipython-vimception > > > > Thomas > > > > On 24 April 2015 at 04:21, David Froger > wrote: > > This fix the error: > > require([ > 'base/js/namespace', > 'base/js/events', > 'components/codemirror/keymap/vim' > ], function(IPython, events) { > events.on('app_initialized.NotebookApp', function() { > IPython.CodeCell.options_default.cm_config["keyMap"] = > "vim" > }); > }); > > I'm now trying to understand how to switch beetween Vim modes. > > > Quoting David Froger (2015-04-24 13:11:58) > > > Hi, > > > > I'm trying to configure ipython-notebook 3.1 (installed with > miniconda) to use > > CodeMirror Vim keymaps. > > > > I put in my > ~/.ipython/profile_default/static/custom/custom.js: > > > > require(['base/js/namespace', 'base/js/events'], > function(IPython, events) { > > events.on('app_initialized.NotebookApp', function() { > > > $.getScript('/static/components/codemirror/keymap/vim.js'); > > IPython.CodeCell.options_default.cm_config["keyMap"] > = "vim" > > }); > > }); > > > > But I got the error when openening a notebook: > > > > TypeError: next is undefined (codemirror.js:4622) > > > > What is the correct way to get CodeMirror Vim Keymaps in > ipython-notebook 3.1? > > > > Thanks, > > David > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From fordas at uw.edu Fri Apr 24 15:54:08 2015 From: fordas at uw.edu (Alex Ford) Date: Fri, 24 Apr 2015 12:54:08 -0700 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) In-Reply-To: <1429894856.4723.169.camel@gmail.com> References: <20150424111158.14514.86984@otis.rocq.inria.fr> <20150424112148.14514.91581@otis.rocq.inria.fr> <1429894856.4723.169.camel@gmail.com> Message-ID: I coded up a quick jupyter-compatible nbextension to support input mode switching last week, based roughly on ivanov/ipython-vimception . It adds a "vim" keymap and adds a keymap selection mechanism patterned on the editor's keymap selection system. Wasn't sure exactly how extensions should be installed & configuration should be handled, so it may be a little rough, but it works relatively well to quiet the vim-monkey on my back. https://github.com/asford/notebook_input_mode -Alex ----- Alex Ford Baker Group, Biomolecular Structure and Design University of Washington fordas at uw.edu 206.659.6559 On Fri, Apr 24, 2015 at 10:00 AM, Francisco de la Pena < frandelapena at gmail.com> wrote: > Unfortunately it seems that Vimception does not yet work with IPython 3. > See https://github.com/ivanov/ipython-vimception/issues/19 . > > Francisco > > On Fri, 2015-04-24 at 09:57 -0700, Thomas Kluyver wrote: > > Hi David, > > > You might want to look at Paul Ivanov's Vimception extension:# > https://github.com/ivanov/ipython-vimception > > > Thomas > > > On 24 April 2015 at 04:21, David Froger > wrote: > > This fix the error: > > require([ > 'base/js/namespace', > 'base/js/events', > 'components/codemirror/keymap/vim' > ], function(IPython, events) { > events.on('app_initialized.NotebookApp', function() { > IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > }); > }); > > I'm now trying to understand how to switch beetween Vim modes. > > > Quoting David Froger (2015-04-24 13:11:58) > > > Hi, > > > > I'm trying to configure ipython-notebook 3.1 (installed with miniconda) > to use > > CodeMirror Vim keymaps. > > > > I put in my ~/.ipython/profile_default/static/custom/custom.js: > > > > require(['base/js/namespace', 'base/js/events'], function(IPython, > events) { > > events.on('app_initialized.NotebookApp', function() { > > $.getScript('/static/components/codemirror/keymap/vim.js'); > > IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > > }); > > }); > > > > But I got the error when openening a notebook: > > > > TypeError: next is undefined (codemirror.js:4622) > > > > What is the correct way to get CodeMirror Vim Keymaps in > ipython-notebook 3.1? > > > > Thanks, > > David > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.froger.ml at mailoo.org Fri Apr 24 16:14:03 2015 From: david.froger.ml at mailoo.org (David Froger) Date: Fri, 24 Apr 2015 22:14:03 +0200 Subject: [IPython-dev] CodeMirror Vim keymaps (ipython-notebook 3.1) In-Reply-To: References: <20150424111158.14514.86984@otis.rocq.inria.fr> <20150424112148.14514.91581@otis.rocq.inria.fr> <1429894856.4723.169.camel@gmail.com> Message-ID: <20150424201403.14514.20497@otis.rocq.inria.fr> Alex, Thanks a lot! It just work! Amazingly usefull! I'll read the source and learn a lot of things :-). Thanks again for sharing it. David Quoting Alex Ford (2015-04-24 21:54:08) > I coded up a quick jupyter-compatible nbextension to support input mode > switching last week, based roughly on?ivanov/ipython-vimception. It adds a > "vim" keymap and adds a keymap selection mechanism patterned on the editor's > keymap selection system. Wasn't sure exactly how extensions should be installed > & configuration should be handled, so it may be a little rough, but it works > relatively well to quiet the vim-monkey on my back. > > https://github.com/asford/notebook_input_mode > > -Alex > > ----- > Alex Ford > Baker Group, Biomolecular Structure and Design > University of Washington > fordas at uw.edu > 206.659.6559 > > On Fri, Apr 24, 2015 at 10:00 AM, Francisco de la Pena > wrote: > > Unfortunately it seems that Vimception does not yet work with IPython 3. > See https://github.com/ivanov/ipython-vimception/issues/19 . > > Francisco > > On Fri, 2015-04-24 at 09:57 -0700, Thomas Kluyver wrote: > > Hi David, > > > > You might want to look at Paul Ivanov's Vimception extension:# > https://github.com/ivanov/ipython-vimception > > > > Thomas > > > > > On 24 April 2015 at 04:21, David Froger > wrote: > > This fix the error: > > require([ > ? ? 'base/js/namespace', > ? ? 'base/js/events', > ? ? 'components/codemirror/keymap/vim' > ? ], function(IPython, events) { > ? events.on('app_initialized.NotebookApp', function() { > ? ? IPython.CodeCell.options_default.cm_config["keyMap"] = "vim" > ? }); > }); > > I'm now trying to understand how to switch beetween Vim modes. > > > Quoting David Froger (2015-04-24 13:11:58) > > > Hi, > > > > I'm trying to configure ipython-notebook 3.1 (installed with > miniconda) to use > > CodeMirror Vim keymaps. > > > > I put in my ~/.ipython/profile_default/static/custom/custom.js: > > > >? ? ?require(['base/js/namespace', 'base/js/events'], function > (IPython, events) { > >? ? ? ?events.on('app_initialized.NotebookApp', function() { > >? ? ? ? ?$.getScript('/static/components/codemirror/keymap/ > vim.js'); > >? ? ? ? ?IPython.CodeCell.options_default.cm_config["keyMap"] = > "vim" > >? ? ? ?}); > >? ? ?}); > > > > But I got the error when openening a notebook: > > > >? ? ?TypeError: next is undefined (codemirror.js:4622) > > > > What is the correct way to get CodeMirror Vim Keymaps in > ipython-notebook 3.1? > > > > Thanks, > > David > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > From paad.ruslan.korniichuk at gmail.com Sat Apr 25 12:28:38 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Sat, 25 Apr 2015 18:28:38 +0200 Subject: [IPython-dev] How do I change kernel in Jupyter Notebook w/o working directory changes Message-ID: Hi all, All history of this subject is available HERE: http://goo.gl/rOv8r2 Thanks to Thomas Kluyver. Now I can run in one Jupyter Notebook local and remote kernels. But I can not fix one interesting moment with working directory. For example, *pc-frontend: test at local_host* and *pc-backend: paad at remote_host.* Username on a local machine is NOT the same as username on a remote machine. *When I start Jupyter Notebook on a local machine with a local kernel, my working directory is **?/home/test? (!pwd). Next I change kernel in Jupyter Notebook from local to remote and check (!pwd) my working directory. My working directory is ?/home/paad?**.* My Notebook is on a local machine. I read this articles: http://ipython.org/ipython-doc/dev/config/options/notebook.html http://ipython.org/ipython-doc/dev/config/options/kernel.html and tried change ?c.NotebookApp.notebook_dir? in ipython_notebook_config.py. But this option does not available for kernel. *When the working directory changes? What process is responsible for this? Maybe somebody know how fix it and switch off working directory changes?* --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Sat Apr 25 14:15:01 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 25 Apr 2015 11:15:01 -0700 Subject: [IPython-dev] How do I change kernel in Jupyter Notebook w/o working directory changes In-Reply-To: References: Message-ID: Hi Ruslan, I see you're sshing to the remote machine to start the kernel. The working directory depends on where you start the kernel, so it's your home directory because that's where you start in when you ssh in. If the directories on your remote machine match local directories, you can get the working directory on the local machine using 'pwd' inside remote_kernel.sh, and when you ssh to the remote machine, cd to the location you want before starting the kernel. Hope that helps, Thomas On 25 April 2015 at 09:28, Ruslan Korniichuk < paad.ruslan.korniichuk at gmail.com> wrote: > Hi all, > > All history of this subject is available HERE: > > http://goo.gl/rOv8r2 > > Thanks to Thomas Kluyver. Now I can run in one Jupyter Notebook local and > remote kernels. But I can not fix one interesting moment with working > directory. > > For example, > > *pc-frontend: test at local_host* > > and > > *pc-backend: paad at remote_host.* > > Username on a local machine is NOT the same as username on a remote > machine. *When I start Jupyter Notebook on a local machine with a local > kernel, my working directory is **?/home/test? (!pwd). Next I change > kernel in Jupyter Notebook from local to remote and check (!pwd) my > working directory. My working directory is ?/home/paad?**.* My Notebook > is on a local machine. > > I read this articles: > > http://ipython.org/ipython-doc/dev/config/options/notebook.html > > http://ipython.org/ipython-doc/dev/config/options/kernel.html > > and tried change ?c.NotebookApp.notebook_dir? in > ipython_notebook_config.py. But this option does not available for kernel. > > *When the working directory changes? What process is responsible for this? > Maybe somebody know how fix it and switch off working directory changes?* > > --- > > Best regards, > > Ruslan Korniichuk > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nicolas.Rougier at inria.fr Mon Apr 27 03:09:04 2015 From: Nicolas.Rougier at inria.fr (Nicolas P. Rougier) Date: Mon, 27 Apr 2015 09:09:04 +0200 Subject: [IPython-dev] EuroScipy 2015: Submission deadline in 3 days !!! Message-ID: --------------------------------- Submission deadline in 3 days !!! --------------------------------- EuroScipy 2015, the annual conference on Python in science will take place in Cambridge, UK on 26-30 August 2015. The conference features two days of tutorials followed by two days of scientific talks & posters and an extra day dedicated to developer sprints. It is the major event in Europe in the field of technical/scientific computing within the Python ecosystem. Data scientists, analysts, quants, PhD's, scientists and students from more than 20 countries attended the conference last year. The topics presented at EuroSciPy are very diverse, with a focus on advanced software engineering and original uses of Python and its scientific libraries, either in theoretical or experimental research, from both academia and the industry. Submissions for posters, talks & tutorials (beginner and advanced) are welcome on our website at http://www.euroscipy.org/2015/ Sprint proposals should be addressed directly to the organisation at euroscipy-org at python.org Important dates =============== Mar 24, 2015 Call for talks, posters & tutorials Apr 30, 2015 Talk and tutorials submission deadline May 1, 2015 Registration opens May 30, 2015 Final program announced Jun 15, 2015 Early-bird registration ends Aug 26-27, 2015 Tutorials Aug 28-29, 2015 Main conference Aug 30, 2015 Sprints We look forward to an exciting conference and hope to see you in Cambridge The EuroSciPy 2015 Team - http://www.euroscipy.org/2015/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Apr 27 16:14:06 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 27 Apr 2015 13:14:06 -0700 Subject: [IPython-dev] Open data science conference Message-ID: I was just alerted to this: http://opendatascicon.com/ It's in Boston, May 30-31. I don't know if it's important for us to be at every data science conference, but if we think it's worth our going, Matthias will be going to NY ten days earlier, so he may be able to stay in the area. Or Jason or Sylvain could potentially represent Jupyter. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From rgbkrk at gmail.com Mon Apr 27 17:32:25 2015 From: rgbkrk at gmail.com (Kyle Kelley) Date: Mon, 27 Apr 2015 16:32:25 -0500 Subject: [IPython-dev] Open data science conference In-Reply-To: References: Message-ID: :D Actually, I'm co-presenting with Andrew Odewahn at O'Reilly there about authoring workflows with the Jupyter Notebook and Jupyter kernels. On Mon, Apr 27, 2015 at 3:14 PM, Thomas Kluyver wrote: > I was just alerted to this: > > http://opendatascicon.com/ > > It's in Boston, May 30-31. > > I don't know if it's important for us to be at every data science > conference, but if we think it's worth our going, Matthias will be going to > NY ten days earlier, so he may be able to stay in the area. Or Jason or > Sylvain could potentially represent Jupyter. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Kyle Kelley (@rgbkrk ; lambdaops.com, developer.rackspace.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Apr 27 17:38:58 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 27 Apr 2015 14:38:58 -0700 Subject: [IPython-dev] Open data science conference In-Reply-To: References: Message-ID: Oh, it's already in the plan. Awesome! Have fun. On 27 April 2015 at 14:32, Kyle Kelley wrote: > :D Actually, I'm co-presenting with Andrew Odewahn at O'Reilly there about > authoring workflows with the Jupyter Notebook and Jupyter kernels. > > On Mon, Apr 27, 2015 at 3:14 PM, Thomas Kluyver wrote: > >> I was just alerted to this: >> >> http://opendatascicon.com/ >> >> It's in Boston, May 30-31. >> >> I don't know if it's important for us to be at every data science >> conference, but if we think it's worth our going, Matthias will be going to >> NY ten days earlier, so he may be able to stay in the area. Or Jason or >> Sylvain could potentially represent Jupyter. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Kyle Kelley (@rgbkrk ; lambdaops.com, > developer.rackspace.com) > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony.hirst at open.ac.uk Tue Apr 28 09:12:40 2015 From: tony.hirst at open.ac.uk (Tony.Hirst) Date: Tue, 28 Apr 2015 13:12:40 +0000 Subject: [IPython-dev] Hook to save a notebook Message-ID: I have a toolbar button extension that zips up HTML and ipynb versions of the current notebook into a single zip file, but I would also like to force the notebook to save and checkpoint when I initiate this action. What do I have to call to force that action? thanks tony -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Tue Apr 28 11:09:09 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 28 Apr 2015 08:09:09 -0700 Subject: [IPython-dev] Hook to save a notebook In-Reply-To: References: Message-ID: IPython.notebook.save_checkpoint() -MinRK On Tue, Apr 28, 2015 at 6:12 AM, Tony.Hirst wrote: > I have a toolbar button extension that zips up HTML and ipynb versions > of the current notebook into a single zip file, but I would also like to > force the notebook to save and checkpoint when I initiate this action. What > do I have to call to force that action? > > thanks > tony > -- The Open University is incorporated by Royal Charter (RC 000391), an > exempt charity in England & Wales and a charity registered in Scotland (SC > 038302). The Open University is authorised and regulated by the Financial > Conduct Authority. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssanderson at quantopian.com Tue Apr 28 21:04:41 2015 From: ssanderson at quantopian.com (ssanderson) Date: Tue, 28 Apr 2015 18:04:41 -0700 (PDT) Subject: [IPython-dev] Open data science conference In-Reply-To: References: Message-ID: <1430269481961-5093626.post@n6.nabble.com> I'll probably be around (though not speaking) as well. Q has 3 speakers in the event I think, and all of them will likely be using the notebook for their talks. -- View this message in context: http://python.6.x6.nabble.com/Open-data-science-conference-tp5093531p5093626.html Sent from the IPython - Development mailing list archive at Nabble.com. From tony.hirst at open.ac.uk Wed Apr 29 04:47:20 2015 From: tony.hirst at open.ac.uk (Tony.Hirst) Date: Wed, 29 Apr 2015 08:47:20 +0000 Subject: [IPython-dev] Hook to save a notebook Message-ID: >I have a toolbar button extension that zips up HTML and ipynb versions >of the current notebook into a single zip file, but I would also like to >force the notebook to save and checkpoint when I initiate this action. >What do I have to call to force that action? ---- > >IPython.notebook.save_checkpoint() > >-MinRK Thanks... I've also noticed that the js customisations don't always run, I think because of a reace between a call on $ and jquery loading? I'm using chrome on os/x - and guess this is a cache issue? (I was also wondering whether the notebook load event is guaranteed to fire or can cacheing break that too? tony -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority. From benjaminrk at gmail.com Wed Apr 29 13:20:02 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 29 Apr 2015 10:20:02 -0700 Subject: [IPython-dev] Hook to save a notebook In-Reply-To: References: Message-ID: On Wed, Apr 29, 2015 at 1:47 AM, Tony.Hirst wrote: > > >I have a toolbar button extension that zips up HTML and ipynb versions > >of the current notebook into a single zip file, but I would also like to > >force the notebook to save and checkpoint when I initiate this action. > >What do I have to call to force that action? > ---- > > > >IPython.notebook.save_checkpoint() > > > >-MinRK > > > Thanks... > > I've also noticed that the js customisations don't always run, I think > because of a reace between a call on $ and jquery loading? I'm using > chrome on os/x - and guess this is a cache issue? custom.js is always run, regardless of caching. If there's a race, you probably need to make sure you express your dependencies with `require(['jquery', 'etc.'], function ($) { ... })` to ensure dependencies are loaded before you try to use them. > (I was also wondering > whether the notebook load event is guaranteed to fire or can cacheing > break that too? > No, the load event will always fire and will not be affected by caching. -MinRK > > tony > > -- The Open University is incorporated by Royal Charter (RC 000391), an > exempt charity in England & Wales and a charity registered in Scotland (SC > 038302). The Open University is authorised and regulated by the Financial > Conduct Authority. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Wed Apr 29 16:22:37 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 29 Apr 2015 13:22:37 -0700 Subject: [IPython-dev] Work full time on Project Jupyter/IPython Message-ID: Hello all, [this email has been approved by the Jupyter/IPython Steering Council] I wanted to let the community know that we are currently hiring 3 full time software engineers to work full time on Project Jupyter/IPython. These positions will be in my group at Cal Poly in San Luis Obispo, CA. We are looking for frontend and backend software engineers with lots of Python/JavaScript experience and a passion for open source software. The details can be found here: https://www.calpolycorporationjobs.org/postings/736 This is an unusual opportunity in a couple of respects: * These positions will allow you to work on open source software full time - not as a X% side project (aka weekends and evenings). * These are full benefited positions (CA state retirement, health care, etc.) * You will get to work and live in San Luis Obispo, one of the nicest places on earth. We are minutes from the beach, have perfect year-round weather and are close to both the Bay Area and So Cal. I am more than willing to talk to any who interested about these positions. Cheers, Brian -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Wed Apr 29 16:28:55 2015 From: wes.turner at gmail.com (Wes Turner) Date: Wed, 29 Apr 2015 15:28:55 -0500 Subject: [IPython-dev] Work full time on Project Jupyter/IPython In-Reply-To: References: Message-ID: Sounds like an interesting gig. On Apr 29, 2015 3:22 PM, "Brian Granger" wrote: > Hello all, > > [this email has been approved by the Jupyter/IPython Steering Council] > > I wanted to let the community know that we are currently hiring 3 full > time software engineers to work full time on Project Jupyter/IPython. These > positions will be in my group at Cal Poly in San Luis Obispo, CA. We are > looking for frontend and backend software engineers with lots of > Python/JavaScript experience and a passion for open source software. The > details can be found here: > > https://www.calpolycorporationjobs.org/postings/736 > > This is an unusual opportunity in a couple of respects: > > * These positions will allow you to work on open source software full time > - not as a X% side project (aka weekends and evenings). > * These are full benefited positions (CA state retirement, health care, > etc.) > * You will get to work and live in San Luis Obispo, one of the nicest > places on earth. We are minutes from the beach, have perfect year-round > weather and are close to both the Bay Area and So Cal. > > I am more than willing to talk to any who interested about these positions. > > Cheers, > > Brian > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Wed Apr 29 16:39:55 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 29 Apr 2015 13:39:55 -0700 Subject: [IPython-dev] [jupyter] Re: Work full time on Project Jupyter/IPython In-Reply-To: References: Message-ID: Let me know if you want to chat about this... Cheers, Brian On Wed, Apr 29, 2015 at 1:28 PM, Wes Turner wrote: > Sounds like an interesting gig. > On Apr 29, 2015 3:22 PM, "Brian Granger" wrote: > >> Hello all, >> >> [this email has been approved by the Jupyter/IPython Steering Council] >> >> I wanted to let the community know that we are currently hiring 3 full >> time software engineers to work full time on Project Jupyter/IPython. These >> positions will be in my group at Cal Poly in San Luis Obispo, CA. We are >> looking for frontend and backend software engineers with lots of >> Python/JavaScript experience and a passion for open source software. The >> details can be found here: >> >> https://www.calpolycorporationjobs.org/postings/736 >> >> This is an unusual opportunity in a couple of respects: >> >> * These positions will allow you to work on open source software full >> time - not as a X% side project (aka weekends and evenings). >> * These are full benefited positions (CA state retirement, health care, >> etc.) >> * You will get to work and live in San Luis Obispo, one of the nicest >> places on earth. We are minutes from the beach, have perfect year-round >> weather and are close to both the Bay Area and So Cal. >> >> I am more than willing to talk to any who interested about these >> positions. >> >> Cheers, >> >> Brian >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> @ellisonbg on Twitter and GitHub >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CACfEFw8NC4DRhVQt4xpJYbdMo63ypCEHWyNAKsVqxoVOjMM%3D1A%40mail.gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Apr 30 20:58:11 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 30 Apr 2015 17:58:11 -0700 Subject: [IPython-dev] Spyre - interactive web apps Message-ID: Hi all, I wanted to bring up Spyre, which I saw Adam's poster about at PyCon. Adam is CCed here, and a copy of his poster is attached. Spyre is a tool to build a simple interactive web application from Python. You can define some widgets for input, a processing step, and outputs like plots and tables. Then when you run it, Spyre constructs the HTML, runs a server, and updates the output in response to input changes. There's obvious overlap with IPython widgets, but it's aimed squarely at something we don't have a good answer for yet - making an interactive demo publicly available in a nice format, without exposing full code execution to any visitor. Adam and I both felt that it would be really nice to have this integrated with IPython so that you can build an interactive explorer in the notebook, and then export it to Spyre to put it online. There will probably be a bit of impedance mismatch with the different models, but I don't think it's anything we can't overcome. Live demo: http://adamhajari.com/ Code: https://github.com/adamhajari/spyre Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DSCF7278.JPG Type: image/jpeg Size: 1227421 bytes Desc: not available URL: