-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempting to reproduce this error nextjournal/clerk#531
- Loading branch information
1 parent
e892f6e
commit 9a1b305
Showing
6 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.cpcache | ||
venv | ||
.clerk | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Attempt to reproduce issue https://github.com/nextjournal/clerk/issues/531 | ||
|
||
My reproduction fails with the error `Invalid symbol: Note:.` which I believe is probably identical in respects to the origin of the issue. | ||
|
||
To start up the project do the following: | ||
|
||
1. Install python3, pip3 and virtualenv | ||
2. Run `virtualenv venv` to create a virtual environment directory. | ||
3. Activate the new virtual environment `source venv/bin/activate` | ||
4. Install matplotlib `pip install matplotlib` | ||
5. Start up the REPL within the activated virtual environment `clj -m nrepl.cmdline` | ||
6. Once the browser opens up, enable the last line in `notebooks/issue_reproduction.clj` and see the error appear. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{:paths ["dev"] | ||
:deps {clj-python/libpython-clj {:mvn/version "2.025"} | ||
io.github.nextjournal/clerk {:mvn/version "0.16.1016"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(require | ||
'[nextjournal.clerk :as clerk]) | ||
|
||
;; start Clerk's built-in webserver on the default port 7777, opening the browser when done | ||
(clerk/serve! {:browse true :watch-paths ["notebooks"]}) | ||
|
||
(clerk/show! "notebooks/issue_reproduction.clj") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns issue_reproduction | ||
(:require [libpython-clj2.require :refer [require-python]] | ||
[libpython-clj2.python :refer [py. py.. py.- get-attr call-attr] :as py])) | ||
|
||
; have to set the headless mode before requiring pyplot | ||
(def mplt (py/import-module "matplotlib")) | ||
(py. mplt "use" "Agg") | ||
|
||
(require-python '[matplotlib.pyplot :as pyplot :bind-ns true]) | ||
|
||
;; Fails with error: Invalid symbol: Note:. | ||
;; which sounds like https://github.com/nextjournal/clerk/issues/531 -> Invalid symbol: BagObj: | ||
; (matplotlib.pyplot/imread "images/2024_08_20_room_light.jpg") |