Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reformat python code samples #380

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

invader89
Copy link
Collaborator

Applying black formating to docs pages.

@@ -137,8 +137,8 @@ results

```python PYTHON
# Output:
Question:'What are bear and bull markets ?'
Nearest neighbors:
"Question:'What are bear and bull markets ?'"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapped it with a quotes to have proper strings since code block marked as python.
Or alternatively we can remove python identifier from the code block

# Altair for visualization, Annoy for approximate nearest neighbor search
pip install cohere umap-learn altair annoy datasets tqdm
!pip install cohere umap-learn altair annoy datasets tqdm
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just adding ! to have proper install command for jupyter notebooks

@invader89 invader89 marked this pull request as ready for review January 23, 2025 09:32
@invader89 invader89 requested a review from a team as a code owner January 23, 2025 09:32
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant