├── .gitignore ├── README.md ├── lib ├── ipynb.coffee └── ipynb-view.coffee ├── stylesheets └── ipynb.less ├── package.json ├── menus └── ipynb.cson ├── keymaps └── ipynb.cson └── LICENSE.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | npm-debug.log 3 | node_modules 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IPython Notebook meta-package 2 | 3 | There's nothing to see here folks. 4 | 5 | Go check out [Hydrogen](https://atom.io/packages/hydrogen)! 6 | -------------------------------------------------------------------------------- /lib/ipynb.coffee: -------------------------------------------------------------------------------- 1 | module.exports = 2 | ipynbView: null 3 | 4 | activate: (state) -> 5 | @ipynbView = new IpynbView(state.ipynbViewState) 6 | 7 | deactivate: -> 8 | @ipynbView.destroy() 9 | 10 | serialize: -> 11 | ipynbViewState: @ipynbView.serialize() 12 | -------------------------------------------------------------------------------- /stylesheets/ipynb.less: -------------------------------------------------------------------------------- 1 | // The ui-variables file is provided by base themes provided by Atom. 2 | // 3 | // See https://github.com/atom/atom-dark-ui/blob/master/stylesheets/ui-variables.less 4 | // for a full listing of what's available. 5 | @import "ui-variables"; 6 | 7 | .ipynb { 8 | } 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ipynb", 3 | "main": "./lib/ipynb", 4 | "version": "0.2.0", 5 | "private": true, 6 | "description": "Reserved package", 7 | "repository": "https://github.com/rgbkrk/atom-ipynb", 8 | "license": "Apache 2", 9 | "engines": { 10 | "atom": ">0.151.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /menus/ipynb.cson: -------------------------------------------------------------------------------- 1 | # See https://atom.io/docs/latest/creating-a-package#menus for more details 2 | 'context-menu': 3 | '.overlayer': 4 | 'Enable ipynb': 'ipynb:toggle' 5 | 6 | 'menu': [ 7 | { 8 | 'label': 'Packages' 9 | 'submenu': [ 10 | 'label': 'ipynb' 11 | 'submenu': [ 12 | { 'label': 'Toggle', 'command': 'ipynb:toggle' } 13 | ] 14 | ] 15 | } 16 | ] 17 | -------------------------------------------------------------------------------- /keymaps/ipynb.cson: -------------------------------------------------------------------------------- 1 | # Keybindings require three things to be fully defined: A selector that is 2 | # matched against the focused element, the keystroke and the command to 3 | # execute. 4 | # 5 | # Below is a basic keybinding which registers on all platforms by applying to 6 | # the root workspace element. 7 | 8 | # For more detailed documentation see 9 | # https://atom.io/docs/latest/advanced/keymaps 10 | '.workspace': 11 | 'ctrl-alt-o': 'ipynb:toggle' 12 | -------------------------------------------------------------------------------- /lib/ipynb-view.coffee: -------------------------------------------------------------------------------- 1 | {View} = require 'atom' 2 | 3 | module.exports = 4 | class IpynbView extends View 5 | @content: -> 6 | @div class: 'ipynb overlay from-top', => 7 | @div "Activated ipynb", class: "message" 8 | 9 | initialize: (serializeState) -> 10 | atom.workspaceView.command "ipynb:toggle", => @toggle() 11 | 12 | # Returns an object that can be retrieved when package is activated 13 | serialize: -> 14 | 15 | # Tear down any state and detach 16 | destroy: -> 17 | @detach() 18 | 19 | toggle: -> 20 | console.log "IpynbView was toggled!" 21 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Kyle Kelley 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | --------------------------------------------------------------------------------