Skip to content

Commit 04276da

Browse files
committed
Add new journal entries and documentation for LangGraph and Logseq
- Create a journal entry for April 11, 2025, detailing discoveries related to Logseq and its plugin support for Mermaid. - Add new pages on handling blocking errors in LangGraph and debugging LangGraph in PyCharm, providing clear instructions and best practices. - Include a reference to a Logseq plugin for fenced code, enhancing the documentation for users.
1 parent c82a15d commit 04276da

6 files changed

Lines changed: 38 additions & 1 deletion

journals/2025_04_11.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- #Logseq
2+
- #Discovered [[Logseq/Plugin/logseq-fenced-code-plus]] has support for [[Mermaid]]. Too bad plugins aren't supported when using [[Logseq/Publish]] to web
3+
- ## Langchain Ecosystem
4+
- #Filed
5+
- [[langgraph/CLI/How To/Debug/in PyCharm]]
6+
- [[langgraph/CLI/dev/How To/Handle blocking errors in async code]]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# [xyhp915/logseq-fenced-code-plus: A Logseq plugin for missing types of fenced code 🚀](https://github.com/xyhp915/logseq-fenced-code-plus)
2+
- I think this is created by a core contributor of logseq, [[Person/Charlie xyhp915]]

pages/VSCode___Docs___Languages___Python___Tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readwise-link:: https://read.readwise.io/new/read/01jfz94w9xygdp5gx50req7srh
88
:END:
99
- This automatically installs two other extensions
1010
- [[VSCode/Extension/Pylance]] - [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) - to provide performant Python language support
11-
- [[VSCode/Extension/Python/Debugger]] - [Python Debugger](https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy) - to provide a seamless debug experience with [[Python/debugpy]]
11+
- [[VSCode/Extension/Python/Debugger]] - [Python Debugger](https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy) - to provide a seamless debug experience with [[Py/debugpy]]
1212
- DONE get a python interpreter to work
1313
- DONE prove [[IntelliSense]] works
1414
id:: 676d1cb7-8c2b-4108-89de-bb8129d3bf68
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# How to create a [[PyCharm/Run Configuration]] to debug `langgraph dev`
2+
- ## [[see-also]]
3+
- [[langgraph/GitHub/Discussion/25/04/How to use langgraph dev in a PyCharm Debugger]]
4+
- **Run Configuration Type** - Python
5+
- **Virtual Environment** - Select your project's virtual environment
6+
- **Run Configuration Subtype** - `script`
7+
- **Script Path**: absolute path to the `langgraph` executable within the virtualenv, found with `which langgraph`
8+
- (anyone know how to make this more dynamic? just putting in `langgraph` yields `FileNotFoundError: [Errno 2] No such file or directory: 'langgraph'`
9+
- **Script Parameters**: `dev`
10+
- no need for `--debug-port`, which is for  [[Py/debugpy]]  instead of PyCharm's  [[pydevd]]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# How to handle langgraph's blocking error
2+
- ## sample error - "LangGraph dev identified a synchronous blocking call in your code"
3+
- ```
4+
Heads up! LangGraph dev identified a synchronous blocking call in your code. When running in an ASGI web server, blocking calls can degrade performance for everyone since they tie up the event loop.
5+
Here are your options to fix this:
6+
1. Best approach: Convert any blocking code to use async/await patterns
7+
For example, use 'await aiohttp.get()' instead of 'requests.get()'
8+
2. Quick fix: Move blocking operations to a separate thread
9+
Example: 'await asyncio.to_thread(your_blocking_function)'
10+
3. Override (if you can't change the code):
11+
- For development: Run 'langgraph dev --allow-blocking'
12+
- For deployment: Set 'BG_JOB_ISOLATED_LOOPS=true' environment variable
13+
These blocking operations can prevent health checks and slow down other runs in your deployment. Following these recommendations will help keep your LangGraph application running smoothly!
14+
```
15+
-
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
created-by:: [[Person/codekiln]]
2+
3+
- # [How to use `langgraph dev` in a PyCharm debugger · langchain-ai/langgraph · Discussion #4246](https://github.com/langchain-ai/langgraph/discussions/4246)
4+
-

0 commit comments

Comments
 (0)