Wednesday, May 6, 2020

Get started with Jupyter

Jupyter


Doing some Python coding and want a nicer environment to try some code outside of py? Try JupyterLab.


First thing you want to do after you install JupyterLab is configure starting directory. The tutorial already exists here
In case that link is no longer available:
  1. Run this command: jupyter notebook --generate-config
  2. Edit the resulting file so that c.NotebookApp.notebook_dir = 'c:/mypath/blah/'
    1. Be sure to use forward slash
    2. Remove any # from beginning of the line
You can create a link for this execution file on your desktop or add it to start with your machine

Few notes:
  • You have to do SHIFT+Enter to execute a line
  • You have to hold CTRL+Right Mouse click to execute browser context actions (copy/paste/etc)

If you want a Jupyter for a large group on an auto-scaling cluster, try JupyterHub
There is also a JupyterHub for non-auto-scaling single server setup. 

1 comment:

  1. Great post! JupyterLab is definitely a game-changer for Python development, making it much easier to experiment with code in an interactive environment. Thanks for the tip on configuring the starting directory—it's super helpful!

    For those looking to set up JupyterLab on Ubuntu, I highly recommend checking out this step-by-step guide on Install JupyterLab on Ubuntu. It covers everything from installation to configuration, ensuring a smooth setup process.

    Also, JupyterHub sounds like a fantastic option for collaborative coding—I'll definitely explore it further. Thanks for sharing this valuable information!

    ReplyDelete

AWS WAF log4j query

How to query AWS WAF log for log4j attacks 1. Setup your Athena table using this instruction https://docs.aws.amazon.com/athena/latest/ug/wa...