echej
February 15, 2021, 12:30am
1
First I thought it was bug
Go to Make a dummy index column - python
Copy the second code block to obsidian (using control + C, control + V)
What I got (slashes are added to the code)
from sklearn.datasets import load\_boston
boston \= load\_boston()
df \= pd.DataFrame(boston.data, columns\=boston\['feature\_names'\])
What I expected
from sklearn.datasets import load_boston
boston = load_boston()
df = pd.DataFrame(boston.data, columns=boston['feature_names'])
My os Pop OS 20.10 Linux, I use flatpak distribution
But Obsidian just doesn’t have this functionality Zettlr
Copying code block from this site
from sklearn.datasets import load_boston
boston = load_boston()
df = pd.DataFrame(boston.data, columns=boston['feature_names'])
results in
from sklearn.datasets import load\_boston
boston \= load\_boston()
df \= pd.DataFrame(boston.data, columns\=boston\['feature\_names'\])
instead of expected intended code block as implemented in Zettlr (result is a code block starting for tabs)
from sklearn.datasets import load_boston
boston = load_boston()
df = pd.DataFrame(boston.data, columns=boston['feature_names'])
So my request was to implement copying code blocks in a rich mode as code blocks
It’s interesting… I think there may be something website-related there that doesn’t recognize the code block as such, e.g. try copying code from this site for example (which at least for me it works). I’ll modify your title a little bit to provide more context.
1 Like
echej
February 15, 2021, 12:35pm
4
Indeed, this may be some obscure border case.
Copying modern sites with code work well as you pointed me.
The topic may be closed, I think.
1 Like