Noob to jupyterlab is there a crib book?

hi there

getting the hang of jupyter lab BUT some things elude me and I am SURE that there is a crib book somewhere for these.

why is the debug so SLOW? my machine spec is below but the debug is unusable. Takes about a minute to load the line numbers. If I hit the breakpoint it can take 10 - 30 seconds to show it.

I see it saving ( on the terminal) the notebook BUT how can I get back to the previous version? I practice a high level version control by numbering my notebook changes 10_ 20_ … is there a way to select one of the saved sessions?

any help would be appreciated.

here’s my system if it helps.

inxi -Fxxxrz
  Kernel: 5.15.0-91-generic x86_64 bits: 64 compiler: gcc v: 11.4.0
    Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33 wm: muffin vt: 7
    dm: GDM3 42.0, LightDM 1.30.0 Distro: Linux Mint 21.2 Victoria
    base: Ubuntu 22.04 jammy
  Type: Desktop System: Hewlett-Packard product: HP Z840 Workstation v: N/A
    serial: <superuser required> Chassis: type: 6 serial: <superuser required>
  Mobo: Hewlett-Packard model: 2129 v: 1.01 serial: <superuser required>
    UEFI: Hewlett-Packard v: M60 v02.32 date: 05/02/2017
  Info: 2x 18-core model: Intel Xeon E5-2699 v3 bits: 64 type: MCP SMP
    smt: disabled arch: Haswell rev: 2 cache: L1: 2x 1.1 MiB (2.2 MiB)
    L2: 2x 4.5 MiB (9 MiB) L3: 2x 45 MiB (90 MiB)
  Speed (MHz): avg: 1393 high: 3173 min/max: 1200/3600 cores: 1: 1197
    2: 1469 3: 1734 4: 1198 5: 1197 6: 1197 7: 1198 8: 1198 9: 1197 10: 1197
    11: 1198 12: 1197 13: 1197 14: 1399 15: 3173 16: 1198 17: 1197 18: 1197
    19: 1197 20: 1198 21: 1197 22: 1198 23: 1197 24: 1198 25: 1198 26: 1197
    27: 1197 28: 1197 29: 1197 30: 2072 31: 1239 32: 2168 33: 2294 34: 2295
    35: 1197 36: 1198 bogomips: 165248
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Device-1: NVIDIA GK104GL [Quadro K5000] vendor: Hewlett-Packard
    driver: nvidia v: 470.223.02 pcie: speed: 2.5 GT/s lanes: 16
    bus-ID: 04:00.0 chip-ID: 10de:11ba class-ID: 0300
  Display: x11 server: X.Org v: driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 5760x2160 s-dpi: 69 s-size: 2120x784mm (83.5x30.9")
    s-diag: 2260mm (89")
  Monitor-1: DP-2 pos: primary,right res: 3840x2160 hz: 30 dpi: 52
    size: 1872x1053mm (73.7x41.5") diag: 2148mm (84.6")
  Monitor-2: DVI-D-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 70
    size: 698x393mm (27.5x15.5") diag: 801mm (31.5")
  OpenGL: renderer: Quadro K5000/PCIe/SSE2 v: 4.6.0 NVIDIA 470.223.02
    direct render: Yes
  Device-1: Intel C610/X99 series HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8d20
    class-ID: 0403
  Device-2: NVIDIA GK104 HDMI Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 5 GT/s lanes: 16
    bus-ID: 04:00.1 chip-ID: 10de:0e0a class-ID: 0403
  Device-3: Plantronics Plantronics GameCom 780 type: USB
    driver: plantronics,snd-usb-audio,usbhid bus-ID: 3-9.6:5 chip-ID: 047f:c010
    class-ID: 0300
  Sound Server-1: ALSA v: k5.15.0-91-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
  Device-1: Intel Ethernet I218-LM vendor: Hewlett-Packard driver: e1000e
    v: kernel port: 4040 bus-ID: 00:19.0 chip-ID: 8086:15a0 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel I210 Gigabit Network vendor: Hewlett-Packard driver: igb
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 1000 bus-ID: 05:00.0
    chip-ID: 8086:1533 class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
    mac: <filter>
  IF-ID-2: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  Local Storage: total: 10.46 TiB used: 173.29 GiB (1.6%)
  ID-1: /dev/sda vendor: Samsung model: SSD 840 EVO 1TB size: 931.51 GiB
    speed: <unknown> type: SSD serial: <filter> rev: BB6Q scheme: GPT
  ID-2: /dev/sdb vendor: Western Digital model: WD20EZRZ-00Z5HB0
    size: 1.82 TiB speed: <unknown> type: HDD rpm: 5400 serial: <filter>
    rev: 0A80 scheme: MBR
  ID-3: /dev/sdc vendor: Western Digital model: WD5001AALS-00L3B2
    size: 465.76 GiB speed: <unknown> type: N/A serial: <filter> rev: 3B01
    scheme: MBR
  ID-4: /dev/sdd vendor: Western Digital model: WD80EAZZ-00BKLB0
    size: 7.28 TiB speed: <unknown> type: HDD rpm: 5640 serial: <filter>
    rev: 0A80
  ID-1: / size: 915.32 GiB used: 60.86 GiB (6.6%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
  System Temperatures: cpu: 42.0 C mobo: N/A gpu: nvidia temp: 36 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
  Packages: apt: 2534
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb victoria main upstream import backport
    2: deb jammy main restricted universe multiverse
    3: deb jammy-updates main restricted universe multiverse
    4: deb jammy-backports main restricted universe multiverse
    5: deb jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list
    1: deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] stable main
  Active apt repos in: /etc/apt/sources.list.d/team-xbmc-ppa-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/team-xbmc-ppa-jammy.gpg] jammy main
  Processes: 543 Uptime: 1d 23h 17m wakeups: 0 Memory: 125.8 GiB
  used: 4.13 GiB (3.3%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.4.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

There is a hidden .ipynb-checkpoints folder with your files. There should be changed versions saved in it.

You can also use, with a file open, “File” > “Revert to checkpoint”.

I do not use the debugger much and I do not know what a crib book is, so I have to pass on the rest.

1 Like

outstanding on the “revert to checkpoint” thank you so much.

In my world a “crib book” is a adhoc list of interesting things. There’s little or no structure to it. Just a bunch of worked examples of things discovered along the way. So in this case it would be

12/12/23 how to get to a prior version using checkpoint

file open, “File” > “Revert to checkpoint”.

thanks again for taking the time.

1 Like