💻
Cheatsheets
  • Most Useful Command Line Tools: 50 Cool Tools to Improve Your Workflow, Boost Productivity, and More
  • 7_tips_to_reverse_engineer_javascript
  • Configuring a Repl
  • How to create your command-line program (CLI) with NodeJS and Commander.js | by Duc N. | JavaScript
  • replit Node.JS 24/7 Project Hoster
  • cheatsheets
  • Alacritty, Tmux, and Vim
  • amethyst
  • Android
  • Installing Arch Linux
  • Arch Linux
  • aria2
  • bin
  • bspwm
  • Chocolately Notes
  • command_line_pipes
  • CSS Grid
  • curl
  • The curl guide to HTTP requests
  • Docker
  • Easymotion
  • Emmet
  • Favorite figlet fonts
  • FFMPEG
  • figlet
  • File Serve
  • File Transfer
  • fish shell
  • Front End Dev Links
  • How to use Git.io to shorten GitHub URLs and create vanity URLs
  • Git
  • Downloading a Tarball from GitHub
  • Make Infinite Gmail Addresses For One Inbox
  • How To Use GPG on the Command Line
  • guide_to_fish_completions
  • Homebrew
  • How to clean Arch Linux
  • HTML5 Boilerplate
  • Install
  • All the keyboard shortcuts you’ll ever need for Safari on iPad
  • iosevka
  • iPhone
  • ish (iOS)
  • Javascript Notes
  • jq
  • Jupyter Notebooks
  • Lettering
  • lf-wiki
  • lf
  • Command Line
  • Adding a swapfile after a clean installation without swap partition
  • mac_bluetooth_issues
  • Mac Terminal
  • maim
  • markdown-sample
  • Markdown Notes
  • Images in README.md Markdown Files
  • Organizing information with tables
  • md_cheatsheet
  • NiftyWindows Help
  • nix
  • Justin Restivo - A Portable Text Editor: Nix <3 Neovim
  • NPM
  • neovim configuration
  • Pastery
  • Powershell
  • Table of Basic PowerShell Commands | Scripting Blog
  • Powershell Modules
  • Puppeteer
  • Python
  • rclone-colab
  • replit
  • Hi there, I'm Raju Ghorai - a.k.a. [coderj001]
  • Scriptable
  • Servor
  • Replacing Postlight’s Mercury scraping service with your self-hosted copy
  • Shell Scripts
  • skhd
  • Spicetify
  • SSH
  • SurfingKeys
  • tar
  • Terminal Web Browser Docker
  • Text Generators
  • tmux shortcuts & cheatsheet
  • unicode
  • VIM
  • VIM Diff
  • vi Complete Key Binding List
  • 8 Essential Vim Editor Navigation Fundamentals
  • Vim Shortcut Keys
  • Vite
  • VNC
  • web-servers
  • Web Server
  • Windows Command Line
  • Writeguard
  • WSL Cheatsheet
  • youtube-dl
  • zsh Plugins
  • zspotify
Powered by GitBook
On this page
  • Adding kernel for Hydrogen in Atom
  • Installing Modules
  • Capturing Output to File

Was this helpful?

Jupyter Notebooks

Adding kernel for Hydrogen in Atom

  1. Install the ipykernel in your virtual environment: pipenv install ipykernel

  2. Start shell with: pipenv shell

  3. Set name so Atom Hydrogen can recognize: pipenv run python -m ipykernel install --user --name=name-of-kernel

  4. Start Atom (from within pipenv shell) and when you run code (control-enter), Atom should list python kernels to use (including name-of-kernel)

Installing Modules

# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install scipy

the last word is the name of the module to install

Capturing Output to File

You can use %%capture Jupyter notebook's magic command to catch output of cell and then paste it to your text file with

with open('output.txt', 'w') as out:
   out.write(cap.stdout)

if you want to cell code to specific file for example.txt you can use magic function %%writefile

%%writefile example.txt
ab = 'This is code'
a = 5
print(a+ 2)

Also if you want to append to file you must use -a parameter


PreviousjqNextLettering

Last updated 3 years ago

Was this helpful?

, this notebook explains how to become a good python programmer, by , author and editor at

, this notebook explains Python Strings from basic to advance level, by

, this notebook explains Python Tuples from basic to advance level, by

, this notebook explains Python Dictionary from basic to advance level, by

, this notebook explains Python Lists from basic to advance level with the help of an example, by .

, part of an from the .

by (part of a larger collection on ).

, an in-depth discussion of the descriptor protocol in Python, by .

, by .

, by .

, by .

, by .

Python 3 OOP series by : , , , , ,

(1) Python Dictionary, (2) Apache PySpark - GroupBy Transformation, and (3) Apache PySpark - ReduceBy Transformation by .

How_to_get_started_coding_in_Python?
Tanu Nanda Prabhu
Towards data science
Python Strings from Scratch !!!
Tanu Nanda Prabhu
Python Tuples from Scratch !!!
Tanu Nanda Prabhu
Python Dictionary from Scratch !!!
Tanu Nanda Prabhu
Python Lists from Scratch !!!
Tanu Nanda Prabhu
Learning to code with Python
introduction to Python
Waterloo Python users group
Introduction to Python for Data Scientists
Steve Phelps
Data Science and Big Data
Python Descriptors Demystified
Chris Beaumont
A collection of not so obvious Python stuff you should know!
Sebastian Raschka
Key differences between Python 2.7.x and Python 3.x
Sebastian Raschka
A beginner's guide to Python's namespaces, scope resolution, and the LEGB rule
Sebastian Raschka
Sorting CSV files using the Python csv module
Sebastian Raschka
Leonardo Giordani
Part 1: Objects and types
Part 2: Classes and members
Part 3: Delegation - composition and inheritance
Part 4: Polymorphism
Part 5: Metaclasses
Part 6: Abstract Base Classes
How to Aggregate Subscriber's Interest using the 3 methods:
Abbas Taher