dexplo / jupyter_to_medium

Python package for publishing Jupyter Notebooks as Medium blogposts
https://dexplo.org/jupyter_to_medium
MIT License
147 stars 14 forks source link

Deploy AS not appearing in Jupyter Notebooks after Downloading #42

Closed AlexandriaRansom closed 2 years ago

AlexandriaRansom commented 2 years ago

Upon installing Jupyter to Medium ,

after using in command prompt: pip install jupyter_to_medium

Additionally using jupyter bundlerextension enable --py jupyter_to_medium._bundler --sys-prefix

Both installed were successful!

The "Deploy As Medium feature" was not appearing in Jupyter when pressing the file button . I’ve shut down and restarted the kernel. What would be your recommendations to help resolve this issue to ensure that the deploy as option to medium appears?

mjam03 commented 2 years ago

Hey,

Sorry for the slow reply - have you started using jupyter notebook or are you using jupyterlab. Currently the extension only works for jupyter notebook as jupyterlab requires a javascript extension which this is currently not.

Let me know and if notebook then please let me know some details about environment / OS etc and I'll try to replicate. So far for me as long as:

jupyter bundlerextension enable --py jupyter_to_medium._bundler --sys-prefix

is run then the 'Deploy As' option shows up for me. Also if you run:

jupyter bundlerextension list

what does that show?

AlexandriaRansom commented 2 years ago

Hi mjam03,

Thank you so much for getting back to me! Not a problem. I just tried exactly what you said and opened specifically Jupyter notebook in the command prompt to ensure jupyter lab wasn't running. I then opened up a second command prompt window ran _jupyter bundlerextension enable --py jupyter_to_medium.bundler --sys-prefix like you mentioned and the deploy as to medium popped up! It works perfectly now.

After, I ran jupyter bundlerextension list and the last line result says "Medium Post" from jupyter_to_medium._bundler enabled . (Details about the environment Microsoft Windows version 10 Pro). So, I think that was the problem, opening jupyter lab instead of notebook. Much appreciated for your help.

Best,

Alexandria