Coder Social home page Coder Social logo

tianfudhe / start_jupyter_cm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperspy/start_jupyter_cm

0.0 2.0 0.0 407 KB

Add entries to start IPython from the context menu in Windows

License: BSD 3-Clause "New" or "Revised" License

Batchfile 2.30% Python 97.70%

start_jupyter_cm's Introduction

start_jupyter_cm

Description

Add entries to start the Jypyter Notebook and QtConsole from the file manager context menu. This offers a convenient way of starting Jupyter in a folder. Currently it only supports Microsoft Windows and GNOME (and its many derivatives). Contributions to support other OSs/desktop environments are highly welcome.

Microsoft Windows

Jupyter context menu entries in windows

Jupyter context menu entries in windows

In addition to starting the QtConsole or the Jupyter Notebook server and launching the default browser, in Microsoft Windows the process runs from a terminal. Closing the terminal closes the QtConsole or the Jupyter server.

GNOME

Jupyter context menu entries in windows

Jupyter context menu entries in windows

When selecting multiple folders, one instance of Jupyter QtConsole/notebook opens in each of the selected folders. Selecting a file starts Jupyter in the file directory.

Note that in GNOME the processes run in the background. As of Jupyter Notebook 4.1 there is no way to shutdown the server from the notebook UI. To stop the server one has to manually kill the process. Alternatively, nbmanager can discover all running servers and shut them down using via an UI.

Installation instructions

Any platform

Install from pypi using pip e.g.:

$ pip install start_jupyter_cm

After installation, enable the context menu entries from a terminal as follows:

$ jupyter_context-menu_add

To remove the context menu entries execute the following in a terminal:

$ jupyter_context-menu_remove

To uninstall the package:

$ pip uninstall start_jupyter_cm

Note that adding and removing the entries as above may require administration rights in Microsoft Windows. In Microsoft Windows the entries are added for all users. In GNOME only for the current user.

Also, be aware that, uninstalling the package does not remove the context menu entries. If you are left with the context menu entries after uninstalling start_jupyter_cm, reinstall it, remove the entries as above and uninstall it again.

Microsoft Windows

In Microsoft Windows the preferred way to install this package would be using the Windows MSI installers if it wasn't for this Python bug. Until this issue is fixed, we will not distribute MSI installers.

Related software

  • nbmanager Discover and shutdown Jupyter servers.
  • nbopen Open a notebook using your filemanager.

start_jupyter_cm's People

Contributors

francisco-dlp avatar

Watchers

James Cloos avatar Tianfu He avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.