It seems there is a bug when working with code while in writing mode. The codeboxes doesn't appear at all for example when trying to teach me coding as you can see in the image. So it can only work with code in code mode, but not in text mode making it unusable for teaching at the moment. If I select the portion that's missing, and tell it to write the actual code, it says it does that, but code doesn't appear.
#No code box while working in writing mode in Canvas
1 messages · Page 1 of 1 (latest)
@frigid marsh
Please follow the posting guidelines.
For better assistance from the community or an OpenAI team member, please follow the posting guidelines by clicking the button below.
➜ Need to contact OpenAI support? Visit https://help.openai.com
Same. It handles code in prompts and prompt responses without issues. The canvas docs aren’t showing any code blocks. same on desktop and mobile
I have the same problem, would be great if you guys would fix it to make canvas way more useful. 👌🏻
If you are working with both code and doc, like a README for a Python project, you need to tell it which document you are working with in the canvas:
"show the python code in the canvas"
"show the project description in the canvas"
Any help?
Yeah, I asked it to write just the code in a new canvas and it worked! 🦾 🤖
Explain this for me. So I have a canvas open where my original prompt was: You are a python programming teacher. Your job is to teach me Python. Open up canvas and start teaching me with examples
It opened up a canvas and started explaining. The code was missing in the canvas. So I then tried what you suggested: show the python code in the canvas
and it replied: I've displayed the Python code examples in the canvas above. If you'd like to explore more or need further explanation, feel free to ask!
So it obviously thinks the code is there even though I can't actually see it in the canvas, which is the bug I was referring to earlier
I have same issue
Did you try clicking the buttons from the message responses as seen in the screenshot?
I figured out the issue.
We're expecting the docs created by canvas to be mixed media similar to the way that prompting works.
Canvas ONLY supports rich text or Code.. NOT BOTH. You cannot have a codeblock in a document in canvas.
what I don't understand is WHY this is the case.
I want the results on the left to appear in my doc.. but they wont.
Exactly. There's no reason they can't add formatting for a codebox there. It's probably just a silly css thing. In my cases it clearly says in the canvas side "here's the code:" and then no code appears. At least if there's no possibility of code appearing in canvas, they shouldn't write it like the code should be there. But it's probably just a formatting error.
They seem to have fixed it. At least it works for me now.
Is this issue solved?
If you believe this issue is now ready to be closed, please press the button below.