This version runs well, and is extremely fast!
"Virtual Environments" are in effect small computing worlds on your computer. They allow you to run special sets of tools in a way that keeps them isolated from all other programs. Different programs require different 'dependencies', and different versions of these dependencies. So keeping them separate is a good idea.
If you are new to virtual environments, one good solution is to manage environments is with Anaconda Navigator. Download it for your machine for free. Learn more about Anaconda Navigator.
Here are the steps:
- A. Click "+ create" at the bottom of Navigator
- B. Name it (anything you like, but perhaps "crim_streamlit")
- C. On the Python dialogue, select "3.10.13" or any version that starts with "3.10"
- D. Click "create" in the dialogue, and wait a minute or two . .
Now you will need to create a dedicated folder on your computer where you will keep your notebooks
-
Make a new folder in the Documents folder on your machine. You can name it as you like, but something simple like "CRIM Intervals Notebooks" will do.
-
Make sure you know where to find this folder, since you will need to work with files and notebooks there.
-
Make sure that the new environment you created is the active one (see image).
-
Click on the arrow next your enviroment and select Open Terminal
- This will create an interactive 'Terminal' session, through which you can write commands to your computer that will download the code you need.
- You should see something like this, with the name of your environment, followed by the name of your computer, all followed by a symbol and space for your cursor:
(My_Intervals_Env) rfreedma@rfreedma-22 ~ %
- Now you will install the CRIM Intervals code as a Python 'package'. Type:
pip install crim_intervals
If you learn of a new update for CRIM Intervals, it's simple to install this and replace your current version.
Open a terminal (as described above), then type:
pip uninstall crim_intervals
You will be type "Y" to confirm the removal of the old version.
Now reinstall:
pip install crim_intervals
There is one other library you will need to install in order to use @interact filters with dataframes:
pip install ipywidgets
- Go back to Anaconda Navigator
- While your environment is active, go to the Home menu at left
- Now you will see a gallery of programs that can be 'installed'
- Install Jupyter Lab, which is how we will create, save and interact with Notebooks
- Be sure to install Version 4.0.11. If your version seems to be different, use the gear icon to update to 4.0.11
- After a brief 30 seconds or so, you will be ready to 'Launch' Jupyter Lab:
- Jupyter Lab will 'look' into the Documents on your computer.
- Create a new My_CRIM_Notebooks folder somewhere convenient. You can name it anything you like.
- Next, start a new Python Session via the "Launcher" in the middle of your screen.
- Now use the "+" icon at the top left to create a new notebook.
- Or open an existing Notebook . . .
- Return to the CRIM Intervals Tutorials Pages to learn how to build up your Notebook!
-
When you are finished you can simply close your browser window, and quit Anaconda Navigator and the Terminal application
-
If you want to restart another time you will need to:
- Open Navigator
- Click on your Virtual Environment to activate it
- Go to the Home menu in Anaconda Navigator
- Launch Jupyter Lab
- Navigate to the folder where you keep your notebooks.
Learn more via the Jupyter Lab documentation
- 01_Introduction_and_Corpus
- 02_Notes_Rests
- 03_Durations
- 04_TimeSignatures_Beat_Strength
- 05_Detail_Index
- 06_Melodic_Intervals
- 07_Harmonic_Intervals
- 08_Contrapuntal_Modules
- 09_Ngrams_Heat_Maps
- 10_Lyrics_Homorhythm
- 11_Cadences
- 12_Presentation_Types
- 13_Musical_Examples_Verovio
- 14_Model_Finder
- 15_Network_Graphs
- 16_Python_Basics
- 17_Pandas_Basics
- 18_Visualizations_Summary
- 19_Music21_Basics
- 20_Melodic_Interval_Families
- 99_Local_Installation