Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Latest commit

 

History

History
83 lines (64 loc) · 6.62 KB

README.md

File metadata and controls

83 lines (64 loc) · 6.62 KB

notebooks

NOTICE 2023-04-24: DO NOT USE. This material is out of date and will not be updated here. This repository will be archived by 2023-09-01. It should not be used for new work. All content of this repository (environment files, training documents, reference material) is migrating to https://bcda-aps.github.io/bluesky_training/

This directory contains lessons, tutorials, examples, other - all in Jupyter notebooks

Lessons & Demonstrations

LESSONS

DOCUMENTATION

DEMONSTRATIONS

Tips

Starting a Jupyter notebook session at APS

This session was started from the linux command line:

jemian@otz ~/Documents $ source /APSshare/anaconda3/Bluesky/bin/activate
(base) jemian@otz ~/Documents $ jupyter-notebook

This command produced the following console output and then started my default web browser with a one-time-token-authenticated connection to the Jupyter Notebook server (still running in the console):

[I 15:16:57.546 NotebookApp] Serving notebooks from local directory: /home/oxygen18/JEMIAN/Documents
[I 15:16:57.546 NotebookApp] 0 active kernels
[I 15:16:57.546 NotebookApp] The Jupyter Notebook is running at:
[I 15:16:57.546 NotebookApp] http://localhost:8888/?token=e6a7584762c731a7c64f8f71246b3e616d779f7b4852c9d9
[I 15:16:57.546 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:16:57.547 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=e6a7584762c731a7c64f8f71246b3e616d779f7b4852c9d9
[I 15:17:00.863 NotebookApp] Accepting one-time-token-authenticated connection from ::1

Next, found the New drop-down menu button (top right, below the Lougout button) and selected Python 3 to start a new notebook page using a Python 3 shell (the only kind available here).

Finally, from the File menu in the jupyter notebook (in the browser), selected Rename ... to save the Untitled notebook with the name lesson1 (default extension is .ipynb).