Skip to content

[BLOG] Add uarray-intro #647

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

[BLOG] Add uarray-intro #647

wants to merge 5 commits into from

Conversation

MarsBarLee
Copy link
Contributor

@MarsBarLee MarsBarLee commented Feb 1, 2023

Links to other Quansight blogs:

There is no need to check for Blog2Blog links due to updated website build.

Text styling

  • The blog is written with plain language (where relevant).
  • If there are headers, they use the proper header tags in order to do so (with only one level-one header).
  • All links describe where they link to (for example, check the Quansight labs website).
  • Any kind of styling that the author uses (for example, bold for emphasis) is consistent throughout the blog.

Non-text contents

  • All content is represented as text (for example, images need alt text and videos need captions or descriptive transcripts).
  • If there are emojis, there are not more than three in a row.
  • Don't use flashing gifs or videos.
  • If it were to be read as plain text, the blog still makes sense and no information is missing.

@MarsBarLee MarsBarLee added labs 🔭 Items related to the Labs website type: content 📝 labels Feb 1, 2023
@vercel
Copy link

vercel bot commented Feb 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
consulting ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 10:55am
labs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 10:55am

print(type(myfunc(1.0)))
```

<class 'int'>
Copy link
Contributor Author

@MarsBarLee MarsBarLee Feb 1, 2023

Choose a reason for hiding this comment

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

@gabalafou I'm getting the Vercel build error: error [Error: [next-mdx-remote] error compiling MDX:

Full error message:

Unexpected character `'` (U+0027) after name,
expected a character that can start an attribute name,
such as a letter, `$`, or `_`; whitespace before attributes;
or the end of the tag

  270 |
> 271 |     <class 'int'>
      |            ^
  272 |     <class 'str'>
  273 |

Link to error

The context is showing the result of some code. Link to this section in the old blog website.

Maybe we could wrap it in a code block? But then it would look out of place with the rest of the code results, unless the rest were also in a code block.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh that is formatted so ugly on the old site. If I understand correctly, and as I think you're saying, on this blog post on the old website, the blocks with gray background are meant to represent the code blocks, whereas the monospace-font lines (with no background color) that immediately follow are meant to represent the output from running those code blocks. But the way that is shown visually in the old blog post isn't intuitive to me at all. Let me play with this a bit and get back to you. Thanks for providing the link to the old blog post, by the way, super helpful!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking a look at it! And yes, I understood the blog the same way, code and then result. Maybe both could be in code blocks, but have different color backgrounds or text, to emphasize the difference?

@gabalafou gabalafou requested a review from pavithraes as a code owner July 16, 2023 09:01
@gabalafou gabalafou changed the base branch from develop to main June 17, 2025 10:29
@gabalafou gabalafou changed the base branch from main to develop June 17, 2025 10:30
@gabalafou gabalafou changed the base branch from develop to main June 17, 2025 10:39
@gabalafou
Copy link
Contributor

@pavithraes, I think this is good to go.

I redid the commit history so that I could change the base branch to main.

Once my latest push has successfully deployed, you can take a look at the preview build of the blog post at the following URL: https://labs-git-uarray-intro-quansight.vercel.app/blog/uarray-intro

If this all looks good, then we will be able to apply the notebook code cell syntax demonstrated in this blog post to the backlog of unmigrated blog posts. The syntax looks like this:

<CH.Code className="labs-blog-cell-in-out">

```python in
print("hello world")
```

---

```txt out
hello world
```

</CH.Code>

Copy link
Contributor

Choose a reason for hiding this comment

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

I decided that we should stop duplicating these generic blog post images for each blog post and instead point the blog post metadata to a single image path shared across blog posts (we'll need to update these later).

Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
labs 🔭 Items related to the Labs website type: content 📝
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants